diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2012-12-16 06:56:20 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-12-16 21:39:50 +0100 |
commit | 90934a3de8364038b05d33b8145fd6d506809a64 (patch) | |
tree | 786b8cce2b38aeb20826da79889ebb65e26d492c /package/keyutils/keyutils-02-another-memleak.patch | |
parent | fd303038febaf7008a1f04262dc5decb32d1cfab (diff) | |
download | buildroot-novena-90934a3de8364038b05d33b8145fd6d506809a64.tar.gz buildroot-novena-90934a3de8364038b05d33b8145fd6d506809a64.zip |
package/keyutils: new package
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/keyutils/keyutils-02-another-memleak.patch')
-rw-r--r-- | package/keyutils/keyutils-02-another-memleak.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/keyutils/keyutils-02-another-memleak.patch b/package/keyutils/keyutils-02-another-memleak.patch new file mode 100644 index 000000000..f74fd79ba --- /dev/null +++ b/package/keyutils/keyutils-02-another-memleak.patch @@ -0,0 +1,32 @@ +Patch vampirised from Debian's packaging of keyutils-1.4 + +Author: Michael Gebetsroither <gebi@grml.org> +Description: Fixed another memleak (Closes: #496466). + +diff -Naurp keyutils.orig/keyutils.c keyutils/keyutils.c +--- keyutils.orig/keyutils.c 2008-08-09 21:46:52.000000000 +0200 ++++ keyutils/keyutils.c 2008-08-25 13:38:25.000000000 +0200 +@@ -187,8 +187,10 @@ int keyctl_describe_alloc(key_serial_t i + + for (;;) { + ret = keyctl_describe(id, buf, buflen); +- if (ret < 0) ++ if (ret < 0) { ++ free(buf); + return -1; ++ } + + if (buflen >= ret) + break; +@@ -226,8 +228,10 @@ int keyctl_read_alloc(key_serial_t id, v + + for (;;) { + ret = keyctl_read(id, buf, buflen); +- if (ret < 0) ++ if (ret < 0) { ++ free(buf); + return -1; ++ } + + if (buflen >= ret) + break; |