Commit Graph

456 Commits

Author SHA1 Message Date
Sam Hocevar
e0768d009b Try to work around the Vista ASLR feature by retrieving the executable's
base address once it is loaded in memory.
2009-12-09 00:28:28 +00:00
Sam Hocevar
90daf7a5f0 Try to reorganise the Win32 loader. 2009-12-08 01:41:35 +00:00
Sam Hocevar
83047925d2 Declare diverted Win32 functions as __stdcall. 2009-12-07 21:12:22 +00:00
Sam Hocevar
21d6697bf0 Give the fuzzed Win32 program a chance to display something even
if the diverted function itself causes a crash.
2009-12-07 18:35:45 +00:00
Sam Hocevar
01765e2aef Fix memory leaks and infinite loops in the Win32 launcher. 2009-12-07 18:34:21 +00:00
Sam Hocevar
abd4c9df92 Synchronise Win32 port with recent config.h changes. 2009-12-07 12:36:15 +00:00
Sam Hocevar
f8c30fa9c0 Cleaner solution for echoing the SOURCES variable. 2009-11-26 01:19:08 +00:00
Sam Hocevar
b9f9327716 Reset offset position before most stdio call. 2009-11-26 01:14:05 +00:00
Sam Hocevar
c9150f4458 Use fseeko64() everywhere when possible, instead of potential 32-bit versions. 2009-11-26 01:13:58 +00:00
Sam Hocevar
7026052971 Minor refactoring in lib-stream.c. 2009-11-25 00:42:32 +00:00
Sam Hocevar
76c49fd7cf Synchronise msvc/config.h. 2009-11-25 00:42:25 +00:00
Sam Hocevar
9e89a7fde7 More zzcat stuff. 2009-11-25 00:42:17 +00:00
Sam Hocevar
f1b8f58cd2 We need to know the FILE buffer's current fill status. Implemented for
glibc for now.
2009-11-24 01:25:44 +00:00
Sam Hocevar
008cbf6065 More zzcat additions. 2009-11-24 01:25:37 +00:00
Sam Hocevar
efdb4997e2 Fix a compilation warning in the network code. 2009-11-23 11:16:03 +00:00
Sam Hocevar
128bcc1770 More fread() behaviour improvements, with documentation. 2009-11-23 01:35:23 +00:00
Sam Hocevar
13585b793e Document the __srefill strategy in the source code. 2009-11-23 00:27:11 +00:00
Sam Hocevar
9ec47e4193 Reimplement __uflow() under Linux. Unlocked IO now works on Linux, except
in combination with getdelim()/getline().
2009-11-23 00:27:05 +00:00
Sam Hocevar
f36a3e475c Minor refactoring in zzcat. 2009-11-23 00:26:59 +00:00
Sam Hocevar
906ef22f84 Add a second level of debugging for slightly less useful information. 2009-11-23 00:26:53 +00:00
Sam Hocevar
6b8b80e24d Improve the zzcat test suite with more unlocked IO functions. 2009-11-22 18:54:49 +00:00
Sam Hocevar
9b0c5acea1 Add a check to __uflow(). This will hopefully help us fix the problem with
recent sed versions.
2009-11-22 18:54:43 +00:00
Sam Hocevar
7ac20e160c Refactor dummy memory manager and fix a bug in realloc(). 2009-11-22 18:54:37 +00:00
Sam Hocevar
2e6ce6d101 Refactor zzcat for clarity. 2009-11-22 18:54:31 +00:00
Sam Hocevar
f324673387 Check for typical source code issues in the testsuite. 2009-11-22 18:54:25 +00:00
Sam Hocevar
e6604121cb Add a getc_unlocked method to zzcat. 2009-11-22 18:54:17 +00:00
Sam Hocevar
cbd74358b4 Add mingw32 defines to msvc/config.h. Needs to be tuned furthermore. 2009-11-20 22:47:38 +00:00
Sam Hocevar
ec77adde22 Use ftello64 instead of ftello to handle fseeko64. 2009-11-20 22:47:31 +00:00
Sam Hocevar
54c5a08770 Ignore generated m4 files. 2009-11-20 17:38:06 +00:00
Sam Hocevar
48d91662df Various compilation and unit test fixes. 2009-11-20 17:38:00 +00:00
Sam Hocevar
5887dac5b1 Make check-build executable. 2009-11-20 13:00:28 +00:00
Sam Hocevar
0f775dadc8 Add zznop, a small test program to help debug the Win32 port.
Also add check-build from libcaca to test that msvc/config.h is
up to date.
2009-11-20 12:06:17 +00:00
Sam Hocevar
8b64626792 Detect libzzuf soname at configure time rather than compile time. 2009-11-19 00:51:32 +00:00
Sam Hocevar
020c1f88f0 Add a VS 2010 solution file and make the code build again for Win32. 2009-11-18 13:23:58 +00:00
Sam Hocevar
62b812b7db Compilation fix for systems without get_unlocked(). 2009-10-27 23:10:22 +00:00
Sam Hocevar
0bf7cb7815 Add a getc_unlocked() variant to zzcat. 2009-10-27 23:08:16 +00:00
Sam Hocevar
bdc2b59edd Add a getline() variant to zzcat. 2009-10-27 22:44:09 +00:00
Sam Hocevar
2c701d10b4 Add missing svn:ignore properties. 2009-10-27 00:07:10 +00:00
Sam Hocevar
4bcc868331 Undefine _XOPEN_SOURCE before redefining it. 2009-10-27 00:01:25 +00:00
Sam Hocevar
35c9e3efb9 Append "/" to our LT_OBJDIR override. 2009-08-07 00:24:31 +00:00
Sam Hocevar
5d2b1b7682 Old libtool versions don't define LT_OBJDIR. Adding an override for them. 2009-08-07 00:09:03 +00:00
Sam Hocevar
8f431fbd83 Allow remote network host filtering, courtesy of Corentin Delorme. 2009-08-06 21:17:00 +00:00
Sam Hocevar
c586a72c73 Use strcpy, not strcat. 2009-08-06 20:40:35 +00:00
Sam Hocevar
920ac1ae40 Allow fromlen == NULL in the recvfrom() wrapper. 2009-08-06 20:37:05 +00:00
Sam Hocevar
f1639a47c4 lib-mem.c: undefine various feature macros before redefining them. 2009-08-06 20:36:58 +00:00
Sam Hocevar
24e64e5eda zzuf.c: use LT_OBJDIR instead of hardcoding ".libs/". 2009-08-06 20:36:49 +00:00
Sam Hocevar
ff3df16094 lib-fd.c: accept() may accept NULL as the addrlen argument. Do not crash
when faced with this situation. Closes #54.
2009-03-20 23:28:51 +00:00
Sam Hocevar
8512c8cb0b Rename --max-cpu into --max-cputime to avoid confusion (fixes #44). 2008-10-18 22:01:43 +00:00
Sam Hocevar
2c4a8f36c5 * zzuf.c: use atol() instead of atoi() for the --seed flag. 2008-09-17 22:17:23 +00:00
Sam Hocevar
c50a60d09d * zzuf.c: allow the use of -r=0 in addition to -r 0, and likewise for
other flags with numerical arguments.
2008-09-17 22:17:17 +00:00