diff options
author | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-08-22 22:24:18 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforce.net> | 2011-08-22 22:24:18 +0400 |
commit | 48fc033a5929cd776cb1ebe137de692f296668a9 (patch) | |
tree | 94161d6286a805badbfff943f732a93187468304 /image_utils.c | |
parent | db5eca7ed80bd6923660ffb20c283c15bc874b18 (diff) |
* Fix a crash when scanning images without read access. (SF bug #3395670)
Diffstat (limited to 'image_utils.c')
-rw-r--r-- | image_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/image_utils.c b/image_utils.c index 79b4625..c6b9abd 100644 --- a/image_utils.c +++ b/image_utils.c @@ -482,7 +482,7 @@ image_new_from_jpeg(const char * path, int is_file, const char * buf, int size, if(cinfo.output_components == 3) { ofs = 0; - if((ptr = (unsigned char *)malloc(w * 3 * cinfo.rec_outbuf_height + 8)) == NULL) + if((ptr = (unsigned char *)malloc(w * 3 * cinfo.rec_outbuf_height + 16)) == NULL) { DPRINTF(E_WARN, L_METADATA, "malloc failed\n"); image_free(vimage); |