1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-09-20 19:32:05 +02:00
Commit Graph

244 Commits

Author SHA1 Message Date
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
02d01f1aef Removed debug printout 2014-04-14 13:39:02 +02:00
Jonas Tarnstrom
a62032db13 Bumped version 2014-04-14 13:39:01 +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
Jonas Tarnstrom
bf30600769 Fixed broken test on Win32 2014-04-14 13:39:00 +02:00
Jonas Tärnström
90a2c915dd Merge pull request #116 from iskra/patch-1
Fix ImportError
2014-04-11 09:47:10 +02:00
Jonas Tärnström
73945db66b Merge pull request #131 from mvismonte/fix-seg-fault
[ujson] Fixing seg faults in unit tests
2014-04-11 09:26:29 +02:00
Mark Vismonte
2dca0063b5 [ujson] Fixing seg faults in unit tests
- The following unit tests were causing segfaults:
```
test_doubleLongDecimalIssue
test_invalidDoublePrecision
test_doublePrecisionTest
test_encodeDecimal
test_doubleLongIssue
test_encodeDecodeLongDecimal
```
- I changed a constant that couldn't be `const` because it can be overwritten by
  a passed in parameter
2014-02-02 00:58:57 +00:00
Iskra
bb11001c86 Fix ImportError 2013-10-19 20:56:50 +03:00
Jonas Tärnström
e339f5b9d7 Merge pull request #107 from romuloceccon/silence_unused_PyIntToINTXX_warning
Silence warning about unused PyIntToINTXX
2013-10-04 07:46:27 -07:00
Jonas Tärnström
1b251e432d Merge pull request #106 from romuloceccon/constantize_invariable_value
Make idoublePrecision a true constant
2013-09-27 00:08:12 -07:00
Jonas Tärnström
386da82cc1 Merge pull request #108 from romuloceccon/remove_unused_ClearError
Remove unused function ClearError()
2013-09-27 00:07:33 -07:00
Romulo A. Ceccon
c2ca24f516 Remove unused function ClearError() 2013-09-26 17:20:59 -03:00
Romulo A. Ceccon
343d36719b Silence warning about unused PyIntToINTXX
Make the declaration of PyIntToINT32/PyIntToINT64
conditional; otherwise the compiler always warns
about one of them being unused.
2013-09-26 17:15:59 -03:00
Romulo A. Ceccon
28b3bb371f Make idoublePrecision a true constant
Some older compilers might complain about
idoublePrecision not being a constant when
referenced inside the array declaration.
2013-09-26 17:06:08 -03:00
Jonas Tärnström
5d157b4c29 Merge pull request #103 from easonlin/master
Fix minGW sprintf_s build error
2013-09-02 00:17:22 -07: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
Jonas Tärnström
e65f39efa8 Merge pull request #97 from romuloceccon/missing_decimal_fix
Support Python distributions without decimal.py
2013-08-26 06:56:02 -07:00
Romulo A. Ceccon
1f4b786efb Fixed support for distributions without decimal.py
ujson crashed Python if decimal.py wasn't
available. This fix makes ujson ignore the problem
and instead assume no Decimal object will be
passed in to ujson.dumps().
2013-08-19 08:23:41 -03:00
Jonas Tärnström
09f290a0ba Merge pull request #94 from Komnomnomnom/whitespace-fix
whitespace and formatting fixes for objToJSON.c
2013-08-17 03:51:32 -07:00
Jonas Tärnström
cde2be9508 Merge pull request #96 from MikeAthene/master
Adding more tests
2013-08-17 03:50:56 -07:00
Jonas Tärnström
9a09509653 Merge pull request #93 from Komnomnomnom/valgrind-mem-leak
Fix invalid memory read (from valgrind) during test_decodeBrokenListLeakTest
2013-08-17 03:49:54 -07:00
Mikhail Sychev
1a0f2a1d49 Adding more tests
- BMP amd symbol encoding/decoding with ensure_ascii set to True and False
- True, False and null tests like in cjson/json-py test suite
- Empty dict and array tests
- Test for tag escaping
- Bad dict data test
- Minimal cleanups
2013-07-08 14:51:20 -07:00
Kieran O'Mahony
ce308a1917 Fix invalid memory read (from valgrind) during test_decodeBrokenListLeakTest 2013-06-19 18:41:18 +01:00
Kieran O'Mahony
6242c253af whitespace fix 2013-06-18 14:21:43 +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
97b3af67ae Bumped version 2013-06-10 12:15:22 +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
Jonas Tärnström
aa48586b61 Merge pull request #89 from Infinidat/master
bdist_egg
2013-05-24 06:37:23 -07:00
Guy Rozendorn
1910b1d63b Try to use setuptools, for building eggs 2013-05-23 17:27:23 +03:00
Jonas Tärnström
4f229ee318 Merge pull request #88 from MikeAthene/master
intValue cleanup
2013-05-19 23:30:11 -07: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
Jonas Tärnström
c8ead91caf Merge pull request #86 from MikeAthene/master
More memory allocation checks
2013-05-15 02:25:15 -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
Jonas Tärnström
5710c4b421 Merge pull request #85 from MikeAthene/master
Build improvements.
2013-05-11 01:40:06 -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
Jonas Tärnström
72cc1bc533 Merge pull request #84 from MikeAthene/master
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-10 03:17:32 -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
Jonas Tärnström
af4644b4a6 Update README.rst 2013-04-26 16:55:00 +03:00
Jonas Tärnström
851042b89d Update README.rst 2013-04-26 16:49:15 +03:00
Jonas Tärnström
4ab5224413 Update README.rst 2013-04-26 16:48:14 +03:00
jtarnstrom
e5298281e9 RST type-o 2013-02-18 18:21:06 +01:00
jtarnstrom
cbaf644b23 Stupid RST fixed 2013-02-18 18:19:39 +01:00
jtarnstrom
a55ba621ce Fixed UTF-8 format 2013-02-18 18:07:32 +01:00