1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-11-23 12:32:02 +01:00
Commit Graph

50 Commits

Author SHA1 Message Date
kevin birch
cbd68782c8 add encoding support for unsigned long long 2014-11-11 18:25:27 -05:00
kevin birch
6430079c3d support promotion of numeric values to unsigned long 2014-09-02 17:00:16 -04:00
Jonas Tarnstrom
0d76bd0849 Revert "Minor performance optimization"
This reverts commit 510a8fc6d7fd2af9fd39970ff3de4d9aac382706.
2014-04-16 08:42:48 +02:00
Jonas Tarnstrom
510a8fc6d7 Minor performance optimization 2014-04-14 15:52:22 +02:00
Jonas Tarnstrom
4057771d9c Added private argument support for encoder path 2014-04-14 14:43:15 +02:00
Jonas Tarnstrom
9f3449b826 Updated copyright clause 2014-04-14 13:45:50 +02:00
Jonas Tarnstrom
06173a7354 Improved generic iterator support, revmoed iterBegin from encoder API, added test for blist 2014-04-14 13:39:03 +02:00
Jonas Tarnstrom
23c154f798 Replaced UINT_MAX with SIZE_MAX as a better bound check for wrapping memory allocation sizes when escaping strings 2014-04-14 13:39:01 +02:00
Romulo A. Ceccon
c2ca24f516 Remove unused function ClearError() 2013-09-26 17:20:59 -03:00
smartsgy
9de9190859 Fix minGW sprintf_s build error
On windows, We should replace snprintf on msvc only.
2013-09-01 22:54:57 +08:00
Kieran O'Mahony
ce308a1917 Fix invalid memory read (from valgrind) during test_decodeBrokenListLeakTest 2013-06-19 18:41:18 +01:00
Jonas Tarnstrom
08ff81a21d Added explanation text 2013-06-11 08:10:34 +02:00
Jonas Tarnstrom
4e4dc5e4cc Added 2 bytes to the string reservation macro to guaranteed to able to hold the quotes 2013-06-11 08:09:57 +02:00
Jonas Tarnstrom
4073babe2c Merged (line-by-line prv pointer additions from ujson4c project. Bumped version 2013-06-10 12:44:04 +02:00
Jonas Tarnstrom
96dda4e32d Fixed C89 build issue in Win32 2013-06-10 12:14:23 +02:00
Jonas Tarnstrom
79ac0e971d Fixed potential overflow issue with the estimations of string buffer lengths 2013-06-10 12:14:09 +02:00
Mikhail Sychev
6f731e94d1 Use uint32 for decoding depth counter. 2013-05-17 16:43:14 -07:00
Mikhail Sychev
d194048164 Decoding depth limitation/SIGSEGV fix 2013-05-17 16:21:43 -07:00
Mikhail Sychev
fbf3f96a5d Removed intValue negative value checks as intValue is declared as JSUINT64. 2013-05-16 13:42:54 -07:00
Mikhail Sychev
0acd21cb84 Added memory (re)allocation checks.
- Guards against memory alloc size overflow.
 - Memory leak on failed reallocation.
2013-05-14 15:54:35 -07:00
Mikhail Sychev
82861c94d5 Build file improvements.
- Do no redeclare endianness if it's already defined.
 - Do not declare FASTCALL_ATTR on x86_64 as it's not required(used anyway under the hood).
2013-05-10 16:56:30 -07:00
Mikhail Sychev
e098bd1ce9 Fixed style of .c and .h files to use 2 spaces instead of 4 spaces and tabs and added some braces for easier code reading. 2013-05-08 13:52:53 -07:00
jtarnstrom
fd6cc28ab9 Added support for python decimal. Forward ported encode_html_chars patch. Made it all into one big nice commit 2013-02-12 17:15:42 +01:00
jtarnstrom
c5c3c7fbbc Added precise_float directive to make decoder use more precise but slower strtod for double decoding instead of built-in faster functions 2013-02-12 17:15:41 +01:00
unknown
627926af67 Fixed issue with decoding long decimal numbers 2013-02-12 17:15:41 +01:00
fcicq
c92decd12f Change u_int*_t to uint*_t, fix https://github.com/esnme/ultrajson/issues/72
uint*_t is defined in stdint.h, rebase the two commits into one.
2013-01-23 22:45:07 +08:00
unknown
42e7d1d9da Hopefully fixed integer and double decoding capabilities to match those of the old decoder 2013-01-18 16:17:47 +01:00
unknown
a2e9adb885 Updated license preamble 2013-01-16 16:22:08 +01:00
unknown
a92339d065 Minor code cleanup and speed optimizations 2013-01-08 10:38:24 +01:00
unknown
8d3b807713 Code cleanup 2013-01-07 18:30:18 +01:00
unknown
aee46fa31e Cleanup and final fixes of new numeric decoder 2013-01-07 18:27:55 +01:00
unknown
0b1fc32ca2 Initial commit of new numeric decoder 2013-01-07 17:19:53 +01:00
unknown
9bdde8d8e8 Improved double decoding performance and added additional tests 2012-12-17 15:27:19 +01:00
unknown
6d6c8a87d2 Fixed error message being overwritten with incorrect one when decoding overlong integers in an array 2012-12-17 14:50:14 +01:00
Jonas Tarnstrom
a1747b95c6 Fixed all compilers warnings on Level4 MSVC++ 2012-11-13 17:14:09 +01:00
Logan Zhou
33d4bce052 Removed duplicated function. Added test for trailing whitespaces/non-whitespaces. 2012-10-17 16:19:51 +08:00
Logan Zhou
8bda5ad8de Auto skip trailing whitespace and carriage return, instead of raising 'ValueError: Trailing data'. 2012-10-17 12:55:45 +08:00
Jonas Tarnstrom
b7bdaa8cd7 Added ValueError exception to decoder when values are too big 2012-09-24 17:20:11 +02:00
Jonas Tarnstrom
49aa2c8e56 Decoder now properly handles detection of trailing commas in arrays and trailing data at end of input 2012-08-14 11:24:08 +02:00
Jonas Tarnstrom
a6af1d09c6 Updated license to 3-clause BSD 2012-06-25 11:29:54 +02:00
Kieran O'Mahony
6901f41a7c memory alignment fixes
Avoids segmentation faults on strict architectures e.g. SPARC
2012-06-12 12:05:00 +01:00
Kieran O'Mahony
c4016cfcda don't compare pointers outside their allocated regions (fixes segmentation faults) 2012-06-12 12:05:00 +01:00
Kieran O'Mahony
3998aa86eb check if malloc succeeds to avoid segmentation faults when ujson runs out of memory 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
9ffbfd45b5 remove troublesome typedef
Will not build with some versions of mingw and not really used anymore
anyway.
2012-06-12 12:04:59 +01:00
Kieran O'Mahony
fda0329ca9 msvc build fixes 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
a1fd2a582a increased double precision 2012-06-12 12:04:59 +01:00
Kieran O'Mahony
79e980641d fix compiler warnings
& remove redundant enum
2012-06-12 12:04:59 +01:00
Kieran O'Mahony
d041aba16a tabs -> spaces, convert newlines 2012-06-12 12:04:59 +01:00
Jonas Trnstrm
fd13812388 Minor optimizations using local variables 2012-04-22 13:06:40 +02:00
unknown
83f1ee99f7 Restructured code for better pypi packaging 2012-02-07 17:11:29 +01:00