Commit Graph

187 Commits

Author SHA1 Message Date
Ian Gulliver
1c9eec7cf7 Minor cleanups. 2016-02-28 19:02:12 -08:00
Ian Gulliver
4f9d9af660 JSON protocol description start. 2016-02-28 18:56:37 -08:00
Ian Gulliver
05a67df06f Clearer language about hex string lengths. 2016-02-28 18:36:12 -08:00
Ian Gulliver
6bee996d5a Trace children in valgrind. 2016-02-28 15:58:11 -08:00
Ian Gulliver
58a8576da8 Add --exec-{send,receive} 2016-02-28 15:53:55 -08:00
Ian Gulliver
29d0b33161 Set FD_CLOEXEC after dup() 2016-02-28 13:15:12 -08:00
Ian Gulliver
b9d179b957 Largefile support. 2016-02-28 13:11:32 -08:00
Ian Gulliver
e86ea97671 --file-{read,write,append} 2016-02-28 13:08:04 -08:00
Ian Gulliver
fdafe2e055 Convenience function for simple hello. 2016-02-28 12:45:00 -08:00
Ian Gulliver
161ea56d45 Corral the last setsockopt() call into one place. 2016-02-28 12:34:43 -08:00
Ian Gulliver
9e591904ac Better cleanup rule. 2016-02-27 22:55:48 -08:00
Ian Gulliver
98c1a5c458 Fix length tracking for parsing. 2016-02-27 22:53:57 -08:00
Ian Gulliver
0e35f24476 Line endings and byte count clarification. 2016-02-27 22:50:56 -08:00
Ian Gulliver
b183cd9904 More spiffy test rule stuff. 2016-02-27 22:46:54 -08:00
Ian Gulliver
86a3a64be6 Add make test rule. 2016-02-27 22:44:19 -08:00
Ian Gulliver
4414337f2e Move fuzz script into makefile. 2016-02-27 22:25:25 -08:00
Ian Gulliver
c79beb441f Same math problem in parsing. 2016-02-27 22:21:09 -08:00
Ian Gulliver
31d11a63bd New test cases. 2016-02-27 22:19:14 -08:00
Ian Gulliver
66d21dcad9 Bad math calculating overlay start. 2016-02-27 22:19:02 -08:00
Ian Gulliver
4237f4f8c0 Segfault in serialize code. 2016-02-27 22:11:28 -08:00
Ian Gulliver
153544c8b2 Fix crash sending protocols without a greeting. 2016-02-27 22:03:56 -08:00
Ian Gulliver
4f0b2c82e9 Write header to stdout target. 2016-02-27 21:56:37 -08:00
Ian Gulliver
92334724f0 Add mode AC handling, and clean up the parsers and serializers to avoid duplication. 2016-02-27 21:50:15 -08:00
Ian Gulliver
b7e32d1b48 Change proto protocol so the whole stream is also decodable as a proto. 2016-02-27 19:14:04 -08:00
Ian Gulliver
071613d061 Use static greeting buffers. 2016-02-27 16:23:26 -08:00
Ian Gulliver
8d9b40e954 Minor hello cleanups. 2016-02-27 12:48:01 -08:00
Ian Gulliver
2c5b6419d6 Working TCP fastopen for connect-send. 2016-02-27 12:41:56 -08:00
Ian Gulliver
79fc645fa0 Start of fastopen support. 2016-02-27 10:12:48 -08:00
Ian Gulliver
675fb51282 More afl fixes. 2016-02-26 23:36:05 -08:00
Ian Gulliver
c315de6354 JSON: check the source id, not the server id. 2016-02-26 21:14:28 -08:00
Ian Gulliver
7d83d122df Fix server_id overflow due to utf8 blowup in json. 2016-02-26 20:58:23 -08:00
Ian Gulliver
d6cb3afd9d Centralize packet sanity checks, and bound one value that was overflowing. 2016-02-26 14:55:43 -08:00
Ian Gulliver
207cd1e3a1 Add fuzzing script. 2016-02-26 14:34:53 -08:00
Ian Gulliver
a9cfb590e1 Fix some messy shutdown. 2016-02-26 14:31:35 -08:00
Ian Gulliver
8ed1f152a6 Support both types of line endings in airspy_adsb. Fix a bug in raw line ending handling that could delay packets. 2016-02-26 14:18:28 -08:00
Ian Gulliver
e3a372e1ea Hex parsing hardening. 2016-02-26 14:09:37 -08:00
Ian Gulliver
e89d30af24 Two more AFL source files. 2016-02-26 13:57:12 -08:00
Ian Gulliver
9f5ad1518a Fixes from american fuzzy lop testing. 2016-02-26 13:56:52 -08:00
Ian Gulliver
8d9a11076b Add an always trigger list, so we can handle non-socket IO properly. 2016-02-26 11:12:45 -08:00
Ian Gulliver
680cce544f Centralized list implementation. 2016-02-26 10:30:18 -08:00
Ian Gulliver
7e91e3e21d Add some test cases for the plain-text formats. 2016-02-25 23:55:53 -08:00
Ian Gulliver
d985503e8b Avoid default behavior of make. 2016-02-25 23:47:33 -08:00
Ian Gulliver
19a9d498bd Enable -Weverything, fix a ton of bugs. 2016-02-25 23:37:37 -08:00
Ian Gulliver
fe2486c398 Enable shadow warnings, fix one case. 2016-02-25 21:24:10 -08:00
Ian Gulliver
092764bf7e Fix send behavior, again, to not use read as a proxy for write. 2016-02-25 21:22:59 -08:00
Ian Gulliver
2ff838a0f1 Expect sockets always. 2016-02-25 17:33:14 -08:00
Ian Gulliver
99882bc5c7 Enable socket keepalives. 2016-02-25 17:27:07 -08:00
Ian Gulliver
3235211bc2 More sensible cleanup ordering. 2016-02-25 16:48:51 -08:00
Ian Gulliver
3155381678 Shut down if we run out of inputs or outputs. 2016-02-25 16:33:58 -08:00
Ian Gulliver
a9dc7c25db Switch back to write(), since we have non-sockets. 2016-02-25 16:33:47 -08:00