Török Edvin
dc200c6b19
Add bytecode API for pdf.
2010-08-02 18:21:24 +03:00
Török Edvin
69650bea38
win32 build fix.
...
forgot to commit.
2010-07-29 22:17:30 +03:00
Török Edvin
88d54dcb72
Fix distcheck warnings.
2010-07-29 18:22:57 +03:00
Török Edvin
9f1715ccea
Add new bytecode APIs to access the environment.
...
check_platform(...) is an API that can be used to:
- blacklist JIT/bytecode on just a very specific platform (not recommended)
- mask (with 0xf/0xff) some fields, and keep just the flags that uniquely
identify the system where a bug occurs (for example linux + ppc32).
- it returns a bool so you can do further checks if needed.
The bytecode also has access to all the information collected from the
environment, so it can make more detailed decisions (based on CPU, presence of
SELinux/PaX, etc.).
You can't introduce new detections via bytecode, but you can write new
conditions using existing ones.
The previously added builtin bytecode moved all the JIT disable logic to
bytecode for easy updating.
2010-07-29 14:06:59 +03:00
Török Edvin
51d25fde43
Solaris9 doesn't have round.
...
Use a simple implementation instead, this is not performance critical.
2010-05-14 11:09:16 +03:00
Török Edvin
da91503d8e
Properly round ilog/iexp/...
2010-05-14 10:41:42 +03:00
Török Edvin
aadccfd1c8
Fix valgrind warnings.
2010-05-13 23:35:47 +03:00
Török Edvin
fc01c6476f
Fix interpreter.
2010-05-13 23:25:11 +03:00
Török Edvin
e01a81ba2a
Fix map API.
2010-05-13 20:37:06 +03:00
Török Edvin
3de9627110
Fixes for bytecode debug api.
2010-05-13 20:02:02 +03:00
Török Edvin
a5b201c81f
Fix distcheck.
2010-05-13 00:27:00 +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
db219b5051
Make buffer_pipe read cursor independent of ctx->off.
2010-05-12 23:51:20 +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
349e6e118b
More interpreter fixes, pdf.cbc seems to be running now.
2010-03-30 00:04:38 +03:00
Török Edvin
d11cced291
Fix some possible uninitialized value uses.
2010-03-28 20:15:48 +03:00
Török Edvin
ded1cddc8c
Add missing function.
2010-03-24 17:59:41 +02:00
Török Edvin
7f6b55a124
Downgrade some messages to debug.
2010-03-24 17:55:04 +02:00
Török Edvin
e439954b51
Fix valgrind warnings.
2010-03-24 17:37:23 +02:00
Török Edvin
778df8c22f
Fix more leaks.
2010-03-24 17:08:20 +02:00
Török Edvin
02068643c1
Print location of runtime error.
2010-03-22 14:58:58 +02:00
Török Edvin
50436cbdb1
bytecode api fixes.
2010-03-22 13:41:18 +02:00
Török Edvin
9aa1d72591
Fix distcheck errors.
2010-03-22 13:00:23 +02:00
Török Edvin
7b33a3661d
More API fixes.
2010-03-22 11:18:28 +02:00
Török Edvin
6ad39a4099
zlib/buffer apis.
2010-03-22 11:18:28 +02:00
Török Edvin
75e18b29c2
minimalistic zlib api.
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
b56bea54d3
New API for buffer fill.
2010-03-22 11:18:28 +02:00
Török Edvin
236fb13647
New pointer handling rules.
2010-02-15 17:32:40 +02:00
Török Edvin
847d7fc1b8
2009->2010
2010-02-02 14:03:32 +02:00
Török Edvin
3f25b35db9
Fix duplicate const qualifier (bb #1798 ).
2010-01-27 11:04:34 +02:00
Török Edvin
2fd156de61
don't return NULL here.
2010-01-25 15:06:30 +02:00
Török Edvin
4395bb9acf
bytecode ptrdiff32 opcode.
2010-01-21 16:49:22 +02:00
Török Edvin
2d45ef0616
Support for malloc in bytecode. Fix crash with mismatched api/flevel versions.
2010-01-20 20:04:01 +02:00
Török Edvin
242bc10b0e
longest asm instructioj 4096->32.
2010-01-20 18:20:53 +02:00
Török Edvin
e5d112d86b
disasm_x86 api.
2010-01-20 17:16:45 +02:00
Török Edvin
565e677f95
file_find, file_byteat bytecode APIs.
2010-01-20 17:16:45 +02:00
Török Edvin
0fa95ef231
filesize, and pe_rawaddr API.
2010-01-18 19:31:59 +02:00
Török Edvin
688799d126
yc_bytecode is able to unpack a file now!
2009-12-17 17:40:35 +02:00
Török Edvin
92ba8d661c
Attempt to fix SunC build: enum/unsigned mismatch is not allowed.
2009-12-12 15:14:40 +02:00
Török Edvin
ed4a336e2c
More build fixes.
2009-12-11 21:44:22 +02:00
Török Edvin
3ff75dbf0c
Add clambc to the win32 build.
2009-12-11 21:02:23 +02:00
Török Edvin
d0934caf99
Distcheck fixes.
2009-12-11 21:02:19 +02:00
Török Edvin
0a11015bf5
Refactor trace API, so that trace printing happens in clambc.
...
This will allow clambc to implement breakpoints, and watchpoints.
2009-12-09 17:05:05 +02:00
Török Edvin
124af5e8a5
Trace formatting fixes.
2009-12-09 11:43:17 +02:00
Török Edvin
65c740d7d8
Add support for tracing (if bytecode compiled with support).
...
TODO: global id 0 is now a null pointer, need to adjust rest of conversion code
accordingly.
2009-12-08 23:02:49 +02:00
Török Edvin
74b0023374
Fix after merge: update to fmap API.
2009-12-03 11:37:38 +02:00
Török Edvin
3ae0a76d03
Support for scanning files created by bytecode.
2009-12-02 17:30:17 +02:00