help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] bash suitable for parsing big files?


From: Chris Down
Subject: Re: [Help-bash] bash suitable for parsing big files?
Date: Mon, 16 Sep 2013 00:37:24 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On 2013-09-14 04:21, adrelanos wrote:
> This was another fine idea. I am now using:
>
>    while read -r package status arch version_with; do
> ...
>    done < <(dpkg-query --admindir="$dpkg_status_folder"
> --showformat="\${Package}\t\${db:Status-Abbrev}\t\${Architecture}\t\${Version}\n"
> --show \*)
>
> Is this safe from a security perspective (this is untrusted input) of
> could a malformed dpkg status file containing things like "`$(echo a)`"
> lead to code execution in bash?

That entirely depends on where you are getting these variables from.

Attachment: pgpW1i2S0XDlr.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]