Commit Graph

6 Commits

Author SHA1 Message Date
Bryce Anderson
243995f36f Fix memory error and invalid param when no params are present
Also added a unit test that fails with the previous behavior.
Note that `-fsanitize=address` exposes the invalid memory access in
qs_parse.
2015-04-30 20:56:28 -04:00
Jaeseung Ha
11128435cd fix query_string bug that crashed test 2014-11-09 08:20:04 +09:00
ipknHama
5c5c8fb4f5 improve code quality
add missing includes (for amalgation)
remove register keyword (remove clang warning)
change define names to avoid name collision
remove url size limit from query_string.h
change MAX_KV_PAIRS define to const variable
add & to arguments
readability improve (although it requires additional allocation)
2014-10-24 01:18:29 +09:00
Antony Woods
ada3039707 Fixed compiler errors and inlines some of the qs_parse functions 2014-10-22 09:40:33 +01:00
Antony Woods
3a2d22dfe0 Removed instance of 'using namespace std' 2014-10-22 09:34:30 +01:00
Antony Woods
06842721d7 Wrapped qs_parse as query_string and added tests 2014-10-14 09:48:35 +01:00