rpm/rpmio
Alexey Tourbin 2d647098c8 Fixed buffer problems in doShellEscape
When the output from a command is empty, nothing stops doShellEscape from
chopping newlines past the beginning of the buffer.  This problem was first
identified by Dmitry V. Levin in July 2009.

Also, there is an off-by-one error in replacing trailing '\n' with '\0'.
This problem, however, escaped the attention of Dmitry V. Levin in July 2009.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2013-02-12 08:30:33 +02:00
..
Makefile.am Update library current + age (ie libs are now 3.1.0) 2012-11-05 10:22:50 +02:00
argv.c Eliminate dead NULL-assignments on argvFree() and argiFree() 2011-05-28 19:42:54 +03:00
argv.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
base64.c Make base64 encoding/decoding part of rpmio public API 2011-11-09 15:16:28 +02:00
digest.c Bury all NSS specifics into a separate source 2011-11-04 16:49:01 +02:00
digest.h Make base64 encoding/decoding part of rpmio public API 2011-11-09 15:16:28 +02:00
digest_beecrypt.c Eliminate copy-paste nibble(), use rnibble() instead 2012-10-19 16:20:02 +03:00
digest_nss.c Failure to initialize crypto is fatal 2013-02-12 05:19:23 +02:00
macro.c Fixed buffer problems in doShellEscape 2013-02-12 08:30:33 +02:00
rpmbase64.h Make base64 encoding/decoding part of rpmio public API 2011-11-09 15:16:28 +02:00
rpmfileutil.c Failure to calculate digest in rpmDoDigest() is, well, a failure 2013-02-12 05:19:22 +02:00
rpmfileutil.h Export our own version of glob_pattern_p() as rpmIsGlob() 2012-05-31 16:45:32 +03:00
rpmglob.c Only use local mempcpy() if system libraries dont provide one 2012-05-31 18:10:33 +03:00
rpmhook.c Ugh, fix brokenness from previous commit 2009-08-31 11:20:40 +03:00
rpmhook.h Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
rpmio.c Fix strncat() boundaries in Fdopen() 2012-11-05 15:45:29 +02:00
rpmio.h Fix ufdCopy() for large (> 2GB) files 2012-03-14 11:19:47 +02:00
rpmio_internal.h Eliminate use of pgpHashAlgo in rpmio interface arguments 2010-10-22 12:22:44 +03:00
rpmkeyring.c Make base64 encoding/decoding part of rpmio public API 2011-11-09 15:16:28 +02:00
rpmkeyring.h Add a signature verification method to keyring 2011-11-09 13:09:37 +02:00
rpmlog.c Include <stdlib.h> as necessary instead of system.h 2010-01-05 15:04:20 +02:00
rpmlog.h Enable variadic checks for rpmExpand(), rpmlog() and rpmGetPath() 2008-02-25 11:03:38 +02:00
rpmlua.c Add lua 5.2 support. 2012-10-09 08:28:52 +03:00
rpmlua.h Add support for nested Lua macro expansion (RhBug:490740) 2011-05-24 20:41:38 +03:00
rpmmacro.h Include rpmfileutil.h from rpmmacro.h so that 2008-12-01 12:16:56 +01:00
rpmmalloc.c Avoid using void pointer when we have a real type for the memfail function 2010-09-21 13:41:25 +03:00
rpmpgp.c Oops, "magic eight" is necessary here afterall 2012-03-22 12:34:08 +02:00
rpmpgp.h Add an alternative API for parsing PGP packets 2011-11-09 11:54:40 +02:00
rpmsq.c RIP rpmsqFork() + rpmsqWait() and the related bits 2011-05-03 11:21:19 +03:00
rpmsq.h Bring back c++ "protection" to rpmsq, oops 2011-07-05 22:46:18 +03:00
rpmstring.c Enhanced string hash to permit calculating string length on the same call 2012-09-18 04:40:20 +03:00
rpmstring.h Minor optimization to rnibble() 2012-09-03 15:44:53 +03:00
rpmstrpool.c Missing include in string pool 2012-10-11 15:14:48 +03:00
rpmstrpool.h Add doxygen documentation to string pool API 2012-09-27 13:11:17 +03:00
rpmsw.c Rip i386-specific RDTSC support from rpmsw, use gettimeofday() everywhere 2008-04-21 12:39:18 +03:00
rpmsw.h More missing system includes for size_t & friends 2008-01-28 13:43:32 +02:00
rpmurl.h Clean up urlGetFile() return values 2011-04-18 10:20:19 +03:00
rpmutil.h Add "C++ protection" to the public rpmutil.h header, oops... 2010-09-21 15:13:02 +03:00
stubs.c Bury our glob() implementation entirely inside rpmglob.c (RhBug:819680) 2012-05-31 16:46:40 +03:00
url.c Eliminate bunch of obvious dead NULL-assignments around librpmio 2011-05-28 19:43:52 +03:00