aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/deb_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/deb_extractor.c')
-rw-r--r--src/plugins/deb_extractor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/deb_extractor.c b/src/plugins/deb_extractor.c
index 4716732..afbe8bb 100644
--- a/src/plugins/deb_extractor.c
+++ b/src/plugins/deb_extractor.c
@@ -363,6 +363,8 @@ processControlTGZ (struct EXTRACTOR_ExtractContext *ec,
363 363
364 if (size > MAX_CONTROL_SIZE) 364 if (size > MAX_CONTROL_SIZE)
365 return 0; 365 return 0;
366 if (0 == size)
367 return 0;
366 if (NULL == (cdata = malloc (size))) 368 if (NULL == (cdata = malloc (size)))
367 return 0; 369 return 0;
368 off = 0; 370 off = 0;