Török Edvin
6cd36d95f9
bytecode: first close then unlink.
...
should fix win32.
2010-05-15 23:36:49 +03:00
Török Edvin
a3a6b8138d
Handle global gep parameter correctly (bb #1955 ).
2010-05-14 11:29:27 +03:00
Török Edvin
fa0a9143bb
Fix types for store/copy instructions.
2010-05-13 19:51:27 +03:00
Török Edvin
7a7365efe9
0.96.1 new APIs (cli_map etc.)
2010-05-12 23:51:20 +03:00
Török Edvin
1c4683acd1
add match_offsets support.
2010-05-07 10:53:18 +03:00
Török Edvin
3735fda134
min/max functionality level support.
2010-04-26 19:37:04 +03:00
Török Edvin
e86fe7ea90
Add debug messages about how bytecodes are executed (JIT/interpreter).
2010-04-16 10:34:50 +03:00
Török Edvin
b28845c3de
Fix cli_unlink warnings (bb #1956 ).
...
fd == 0 is used to mark an invalid fd (not fd -1).
Test that tempfile is not NULL before calling cli_unlink
(that is the cause of the Bad address errors).
Also call cli_unlink when a virus is found. This isn't strictly
necessary since the file will get removed by the parent's rmdirs(),
but there is no point in leaving it behind.
2010-04-14 21:15:08 +03:00
Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
2010-04-13 16:19:47 +03:00
Török Edvin
b00a7cc8f8
jsnorm api.
2010-03-31 10:53:11 +03:00
Török Edvin
dcaa403826
Fix use-of-uninit memory on zeroinitializer.
2010-03-30 10:42:46 +03:00
Török Edvin
349e6e118b
More interpreter fixes, pdf.cbc seems to be running now.
2010-03-30 00:04:38 +03:00
Török Edvin
44e134312c
More fixes for pdf.cbc.
2010-03-30 00:04:38 +03:00
Török Edvin
0d9b99f43e
Fix bswap.cbc in interpreter mode.
2010-03-28 23:49:25 +03:00
Török Edvin
d11cced291
Fix some possible uninitialized value uses.
2010-03-28 20:15:48 +03:00
Tomasz Kojm
1583913898
fix C++ comments
2010-03-24 17:40:56 +01:00
Török Edvin
12876d3cb6
bytecode timeout 60s.
2010-03-24 18:34:58 +02:00
Török Edvin
7f6b55a124
Downgrade some messages to debug.
2010-03-24 17:55:04 +02:00
Török Edvin
778df8c22f
Fix more leaks.
2010-03-24 17:08:20 +02:00
Török Edvin
6ea339aeab
Fix bswap.
2010-03-24 15:27:15 +02:00
Török Edvin
48fc8b9852
Leak testcase.
2010-03-24 14:14:33 +02:00
Török Edvin
5dfb4bf136
match_with_read appears to be working!
2010-03-24 11:29:56 +02:00
Török Edvin
cfb0aef113
OP_BC_COPY again.
2010-03-24 10:51:05 +02:00
Török Edvin
50829fbf12
Fix read of pedata in interpreter.
2010-03-24 10:41:11 +02:00
Török Edvin
0dd40a5490
Fix OP_BC_COPY.
2010-03-24 10:16:41 +02:00
Török Edvin
1c7c61941c
Fix GEPZ.
2010-03-24 00:07:17 +02:00
Török Edvin
4993d6cf02
Making progress on match_with_read.
2010-03-23 23:46:58 +02:00
Török Edvin
74f5816c58
Interpreter fixes for accessing 'ctx'.
...
This allow all cbcs in unit_tests/input to pass.
Not yet working on bytecode.cvd though.
2010-03-23 21:47:57 +02:00
Török Edvin
bdd9aeaeeb
Use a watchdog thread. Also make timeout be ms instead of us.
2010-03-23 16:33:41 +02:00
Török Edvin
92a08a03bf
--enable-unsigned-bytecode.
...
Use this instead of --enable-debug to enable load of unsigned bytecode.
2010-03-22 17:29:26 +02:00
Török Edvin
b63681a52b
Introduce BytecodeTimeout.
2010-03-22 17:16:07 +02:00
Török Edvin
9aa1d72591
Fix distcheck errors.
2010-03-22 13:00:23 +02:00
Török Edvin
c6c464e590
Fix clambc.
2010-03-22 12:53:48 +02:00
Török Edvin
52d0d8bc7e
More fixes for global vars in the interpreter.
2010-03-22 11:18:28 +02:00
Török Edvin
9cbece5ccd
WiP fixing globals in interpreter.
2010-03-22 11:18:28 +02:00
Török Edvin
f6471bc9d6
More APIs.
2010-03-22 11:18:28 +02:00
Török Edvin
d9fbce26fc
More API additions for PDF.
2010-03-22 11:18:28 +02:00
Török Edvin
606fd6d0f1
Allow "None" bytecode security setting only in --enable-debug mode.
2010-03-10 14:30:31 +02:00
Török Edvin
db29675436
Fix build.
2010-03-06 22:36:16 +02:00
Török Edvin
20327f931f
compute global offsets.
2010-03-06 16:28:08 +02:00
Török Edvin
bc157ce357
prepare for reading globals from ctx
2010-03-06 16:00:54 +02:00
Török Edvin
c074ececc7
Properly calculate numBytes for interpreter, and protect interpreter from null
...
derefs.
2010-02-22 14:12:55 +02:00
Török Edvin
f451cc9ac0
fix loading of bytecode into intepreter.
2010-02-15 17:32:41 +02:00
Török Edvin
3ff41e32b1
fix globals in interpreter.
2010-02-15 17:32:41 +02:00
Török Edvin
6eeadbfeda
dconf for bytecode.
2010-02-15 17:32:41 +02:00
Török Edvin
039af772c8
Don't fail if bytecode was skipped due to functionality level.
2010-02-15 17:32:41 +02:00
Török Edvin
236fb13647
New pointer handling rules.
2010-02-15 17:32:40 +02:00
Török Edvin
9bdaf35dea
print bytecode source code.
2010-02-08 15:16:33 +02:00
Török Edvin
57f14280a7
Fix use-after-free on bytecode load/execution.
...
lsig->bc was referring to the bytecode directly (via a pointer),
but the bytecode struct changes place in memory (it is realloced on each .cbc
load). So use an index instead of the direct pointer.
2010-02-02 15:30:20 +02:00
Török Edvin
847d7fc1b8
2009->2010
2010-02-02 14:03:32 +02:00