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

261 Commits

Author SHA1 Message Date
Mathieu Leplatre
d169b7ccbc Add option to disable forward slash escape
Ref issue #144
2015-03-31 23:41:51 +02:00
Joakim Hamrén
2015faa5d0 Merge pull request #158 from methane/patch-1
Use new Docker based Travis-CI
2014-12-25 19:20:14 +01:00
INADA Naoki
df1b562e0c Use new Docker based Travis-CI 2014-12-25 16:30:58 +09:00
Joakim Hamrén
c9744834ab Merge pull request #142 from kevinbirch/support_unsigned_long_numerics
Support values between [0, 2^64 - 1]
2014-11-14 00:33:20 +01:00
kevin birch
cbd68782c8 add encoding support for unsigned long long 2014-11-11 18:25:27 -05:00
kevin birch
692f59d2aa add tests for decoding unsigned long long 2014-11-11 18:24:26 -05:00
Joakim Hamren
f6573d12fa Triggering a Travis CI build. 2014-10-31 15:05:12 +01:00
Joakim Hamren
8dd258be5f Setting up Travis CI 2014-10-30 23:41:25 +01:00
Jonas Tärnström
0a2933f74f Merge pull request #148 from Jahaja/fix
Fix to avoid a crash on bounds-check fail
2014-10-29 11:18:27 +01:00
Jonas Tärnström
a375020817 Merge pull request #149 from Jahaja/fix2
Fixed segfault on invalid unicode char on python 3
2014-10-29 11:15:39 +01:00
Joakim Hamren
7d28dc09ec Fixed segfault on invalid unicode char on python 3 2014-10-28 23:32:14 +01:00
Joakim Hamren
4a2bfe9120 Made the tests work with Python 3 2014-10-28 23:31:38 +01:00
Joakim Hamren
1af8acdd10 Fix to avoid a crash on bounds-check fail 2014-10-28 23:30:00 +01: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
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