summaryrefslogtreecommitdiffstats
path: root/src/file_swf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:50:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:50:35 +0200
commit26b107a08d2e5f6f6db913f63b4fb3ebf742215d (patch)
tree9fa436d8d652448c8f33433ce58776d4bc25fdb6 /src/file_swf.c
parent5debcdc019a8f441a501bf2c88dc227670cdbb2d (diff)
file_swf.c: disable compilation of some unused code
Diffstat (limited to 'src/file_swf.c')
-rw-r--r--src/file_swf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_swf.c b/src/file_swf.c
index 7126b42..7d93ca4 100644
--- a/src/file_swf.c
+++ b/src/file_swf.c
@@ -151,7 +151,9 @@ static int header_check_swf(const unsigned char *buffer, const unsigned int buff
Ymax=read_SB(&data, &offset_bit, nbit);
if(Xmin!=0 || Ymin!=0 || Xmax<=0 || Ymax<=0)
return 0;
+#if 0
data=&buffer[8+(5+4*nbit+8-1)/8];
+#endif
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_swf.extension;
file_recovery_new->calculated_file_size=(uint64_t)buffer[4]+(((uint64_t)buffer[5])<<8)+(((uint64_t)buffer[6])<<16)+(((uint64_t)buffer[7])<<24);