Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-08-22 22:24:18 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-08-22 22:24:18 +0400
commit48fc033a5929cd776cb1ebe137de692f296668a9 (patch)
tree94161d6286a805badbfff943f732a93187468304 /image_utils.c
parentdb5eca7ed80bd6923660ffb20c283c15bc874b18 (diff)
* Fix a crash when scanning images without read access. (SF bug #3395670)
Diffstat (limited to 'image_utils.c')
-rw-r--r--image_utils.c2
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);