aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/xmalloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gpg: Fix bug parsing a zero length user id.Werner Koch2014-06-021-2/+17
| | | | | | | | | | | | | | | | | | | | | | * g10/getkey.c (get_user_id): Do not call xmalloc with 0. * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to pass 0 to the arguments. -- The problem did not occur in 1.x because over there the xmalloc makes sure to allocate at least one byte. With 2.x for most calls the xmalloc of Libgcrypt is used and Libgcrypt returns an error insteead of silent allocating a byte. Thus gpg 2.x bailed out with an "Fatal: out of core while allocating 0 bytes". The extra code in xmalloc.c is for more robustness for the other xmalloc calls. (cherry picked from commit 99972bd6e9abea71f270284f49997de5f00208af) Resolved conflicts: g10/getkey.c - ignore whitespace changes.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* Fix for bug 537Werner Koch2006-10-021-14/+14
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Updated from NewPGWerner Koch2003-01-091-0/+88
|
* Removed files for CVS reorganizationDavid Shaw2002-06-291-70/+0
|
* Add files to new directory.Werner Koch2000-01-241-0/+70
This is mainly stuff moved from ../util to here.