summaryrefslogtreecommitdiff
path: root/help/th
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-20 03:24:33 +0100
committerraveit65 <[email protected]>2019-02-20 08:40:07 +0100
commitdb21779ec36d0415c37956325f5d1bcf4b89549f (patch)
tree0421f85e713c1da26e478db39d55fcdc23f7850d /help/th
parent333a9e9955e964992e209f731f6e33142824e698 (diff)
downloadengrampa-db21779ec36d0415c37956325f5d1bcf4b89549f.tar.bz2
engrampa-db21779ec36d0415c37956325f5d1bcf4b89549f.tar.xz
Avoid array index out of bounds parsing dpkg-deb --info
The first line of "dpkg-deb -I" output has only 5 words: old Debian package, version 0.939000. or new Debian package, version 2.0. Examples: $ wget http://archive.debian.org/debian/dists/Debian-0.93R6/binary/admin/acct-5-10.deb $ LANG=C dpkg-deb -I acct-5-10.deb old Debian package, version 0.939000. size 18338 bytes: control archive=1064, main archive=17260. 61 bytes, 3 lines conffiles 889 bytes, 20 lines control 570 bytes, 23 lines * postinst #!/bin/sh 107 bytes, 7 lines * postrm #!/bin/sh 212 bytes, 12 lines * preinst #!/bin/sh 212 bytes, 12 lines * prerm #!/bin/sh ... $ wget http://archive.debian.org/debian/dists/bo/main/binary-all/admin/alien_3.3.deb $ LANG=C dpkg-deb -I alien_3.3.deb new Debian package, version 2.0. size 20748 bytes: control archive=850 bytes. 394 bytes, 11 lines control 785 bytes, 13 lines md5sums
Diffstat (limited to 'help/th')
0 files changed, 0 insertions, 0 deletions