Browse code

hwp: scan decompressed data on limits exceeded

Kevin Lin authored on 2016/02/03 02:38:27
Showing 1 changed files
... ...
@@ -173,6 +173,9 @@ static int decompress_and_callback(cli_ctx *ctx, fmap_t *input, off_t at, size_t
173 173
 
174 174
         /* scanning inflated stream */
175 175
         ret = cb(cbdata, ofd, ctx);
176
+    } else {
177
+        /* default to scanning what we got */
178
+        ret = cli_magic_scandesc(ofd, ctx);
176 179
     }
177 180
 
178 181
     /* clean-up */