ALT Linux Bugzilla
– Attachment 5181 Details for
Bug 26463
rpmhdrmemcache.so портит данные
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч который исправляет мемори проблемз фо ю
rpmhdrmemcache-fix.patch (text/plain), 1.02 KB, created by
at@altlinux.org
on 2011-10-31 22:57:19 MSK
(
hide
)
Description:
патч который исправляет мемори проблемз фо ю
Filename:
MIME Type:
Creator:
at@altlinux.org
Created:
2011-10-31 22:57:19 MSK
Size:
1.02 KB
patch
obsolete
>diff --git a/hdrcache.c b/hdrcache.c >index 5bcef1a..9c086ad 100644 >--- a/hdrcache.c >+++ b/hdrcache.c >@@ -117,9 +117,9 @@ Header hdrcache_get(const char *path, const struct stat *st, unsigned *off) > mcdb_put(env, key, keysize, data, datasize); > } > void *blob = data->blob; >+ int blobsize = datasize - sizeof(struct cache_ent) + 1; > char ublob[hdrsize_max]; > if (data->vflags & V_LZO) { >- int blobsize = datasize - sizeof(struct cache_ent) + 1; > lzo_uint ublobsize = 0; > int rc = lzo1x_decompress(blob, blobsize, ublob, &ublobsize, NULL); > if (rc != LZO_E_OK || ublobsize < 1 || ublobsize > hdrsize_max) { >@@ -127,14 +127,16 @@ Header hdrcache_get(const char *path, const struct stat *st, unsigned *off) > return NULL; > } > blob = ublob; >+ blobsize = ublobsize; > } >- Header h = headerLoad(blob); >+ Header h = headerCopyLoad(blob); > if (h == NULL) { > fprintf(stderr, "%s %s: headerLoad failed\n", __func__, key); > return NULL; > } > if (off) > *off = data->off; >+ free(data); > return h; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26463
:
5180
| 5181