47 Commits

Author SHA1 Message Date
leitner
798c06a785 add more comments 2014-06-30 11:40:52 +00:00
leitner
6d18d4ecc3 better comment 2014-04-23 13:44:52 +00:00
leitner
4ecc33dcea catch not enough bytes in input buffer case 2014-04-23 13:40:23 +00:00
leitner
8106f8c5a6 remove superfluous &0x7f 2014-04-23 11:54:24 +00:00
leitner
cf1406735c much shorter way to do the same thing 2014-04-15 20:36:50 +00:00
leitner
708c358a74 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
2014-04-15 20:12:50 +00:00
leitner
24d1ccb1b7 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
2014-04-15 18:52:21 +00:00
leitner
74d676fc62 fix typo in man page
make use of __uint128_t in scan_ulongn and provide long long based
implementation for 32-bit platforms
2014-03-15 16:04:55 +00:00
leitner
9b6671efee add buffer_tosa check to marshal.c
failed attempt to improve scan_ulongn, results in essentially same code
but the C code looks slighly better so I'm keeping it
2014-03-15 15:18:55 +00:00
leitner
9af06ac843 remove can't happen code and instead force a compile time error 2014-03-15 12:38:10 +00:00
leitner
baec005507 improved code path for typical platforms where there is a wider integer type 2014-03-14 21:32:29 +00:00
leitner
08ba483bfb catch other potential overflow 2014-03-14 20:35:47 +00:00
leitner
4a04c40595 get rid of more -Wconversion warnings 2014-03-14 19:42:54 +00:00
leitner
d14d2536f0 get rid of -Wconversion warnings 2014-03-14 02:15:38 +00:00
leitner
e1081e4b13 remove -Wconversion warnings 2014-03-14 01:53:08 +00:00
leitner
18afec7d68 scan_*longlong now properly abort if the number would not fit 2014-03-14 01:33:03 +00:00
leitner
01ffc04006 do proper early abort in the other scan_* routines if the numeric value
is too large
2014-03-14 00:24:02 +00:00
leitner
1d2add208f add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
leitner
45702476e7 add scan_netstring 2013-09-09 22:09:07 +00:00
leitner
69eb8c01e3 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 2013-09-09 20:57:58 +00:00
leitner
f2ee8239d1 add more examples 2013-08-22 23:35:34 +00:00
leitner
5ef52a7e44 catch more bad encoding 2012-09-12 20:20:42 +00:00
leitner
4f1e1d300c make headers work in C++
add two more variable length integer encoding functions
2012-02-07 17:02:40 +00:00
leitner
d17c2d1012 add functions to encode and decode integers in variable length binary
formats
2012-02-06 07:59:56 +00:00
leitner
c5eca073b3 work around broken sqlite download httpd 2008-11-27 14:32:29 +00:00
leitner
9788418026 slight optimization 2007-10-18 11:51:17 +00:00
leitner
3004b518ef switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
leitner
d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
leitner
c169ae9b4a IRIX compatibility (yuck!) 2005-05-20 14:14:15 +00:00
leitner
eeffc36387 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
2005-05-12 06:52:29 +00:00
leitner
05bf627d01 fix scan_xlong, scan_xlonglong and scan_8long 2005-04-25 19:41:51 +00:00
leitner
265e2df10c make sure scan_httpdate uses GMT for mktime 2005-04-04 10:14:11 +00:00
leitner
e0f6355a91 add a few man pages 2004-02-04 23:02:35 +00:00
leitner
a8f6a1c121 remove special case stralloc textcode functions
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
2003-09-19 19:08:13 +00:00
leitner
85bfbeb420 only write dest if we actually parsed something 2003-09-19 14:54:40 +00:00
leitner
5226dd010d change length or size specifiers in APIs from int to long
add array API (http://cr.yp.to/lib/array.html)
2003-08-26 17:58:14 +00:00
leitner
36c6f04ed9 scan_uint and scan_ushort will now abort if the result does not fit in
uint or ushort as opposed to ulong.
2003-06-08 20:01:11 +00:00
leitner
7f3c1ccc0c improve range check 2003-05-27 20:31:25 +00:00
leitner
8f3278e62e add man page for scan_longlong 2003-05-04 16:21:28 +00:00
leitner
09e6dc97e3 add long long scanning support 2003-05-04 16:19:48 +00:00
leitner
72ba2ad6b5 add beginnings of integer range checking 2003-05-01 21:25:04 +00:00
leitner
9e85dc61a0 add scan_httpdate 2003-04-27 17:11:50 +00:00
leitner
701dd5f022 a few more man pages 2002-09-17 18:47:12 +00:00
leitner
5950f0c5ae add some man pages 2002-09-16 21:56:49 +00:00
leitner
40897bd709 bug fixes 2001-11-24 20:37:22 +00:00
leitner
d6ae7e2265 this time for real ;) 2001-11-24 20:11:41 +00:00
leitner
3083708670 Initial revision 2001-02-02 17:54:47 +00:00