Browse code

clamunrar: notice if unpacking comment failed

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Mickey Sola <msola@sourcefire.com>

Sebastian Andrzej Siewior authored on 2014/09/03 05:44:14
Showing 1 changed files
... ...
@@ -352,6 +352,8 @@ int unrar_open(int fd, const char *dirname, unrar_state_t *state)
352 352
 		    unpack_data->dest_unp_size = comment_header->unpack_size;
353 353
 		    unpack_data->pack_size = comment_header->head_size - SIZEOF_COMMHEAD;
354 354
                     retval = rar_unpack(fd, comment_header->unpack_ver, FALSE, unpack_data);
355
+		    if (!retval)
356
+			    unrar_dbgmsg("UNRAR: failed to unpack comment\n");
355 357
 		    unpack_free_data(unpack_data);
356 358
 		}
357 359
 		close(ofd);