Commit Graph

19 Commits

Author SHA1 Message Date
Nicolas Dumazet
9e39f64d52 parsers.c: parse_manifest: fixing refcount of flags
When flags was DECREF'ed, scope was referencing to the outer variable,
outside of the block.
It was in fact always NULL: the real Python object was never decref'ed.
2009-08-27 14:15:04 +02:00
Thomas Arendsen Hein
8999e196bc Some additional space/tab cleanups 2008-10-20 15:19:05 +02:00
Dirkjan Ochtman
f5ea74b223 clean up trailing spaces, leading spaces in C 2008-10-20 14:57:04 +02:00
Benoit Boissinot
bc6e674802 merge with crew 2008-10-19 20:29:41 +02:00
Benoit Boissinot
fdd2a14dd6 parsers.c: do not try to untrack after a failure 2008-10-19 20:17:06 +02:00
Benoit Boissinot
64b6a68b1b parsers.c: fix integer overflows
thanks to zzuf for helping finding those
2008-10-19 20:16:37 +02:00
Thomas Arendsen Hein
1493b09823 Merge with crew 2008-10-19 19:10:26 +02:00
Benoit Boissinot
0a350d3213 parsers.c: there is no reference to data_obj, so it shouldn't be decref'ed 2008-10-19 16:11:23 +02:00
Thomas Arendsen Hein
e5350e7597 Copy index before parsing to enforce alignment with inline data present.
Fixes issue1348 (Bus error in parsers.c) on Solaris/sparc.
2008-10-19 15:08:30 +02:00
Benoit Boissinot
1abf8f679b index parser: fix refcounting in case of errors, refactor
due to incorrect refcounting, on a bad revlog it was failing with:
*** glibc detected *** /usr/bin/python: corrupted double-linked list: 0x0816d318 ***
and a backtrace.
2008-10-19 01:26:46 +02:00
Benoit Boissinot
d3445ca0d4 merge with crew 2008-10-18 20:39:08 +02:00
Benoit Boissinot
6de97a000b revlog parser: use ntohl() instead of ntohll() (fix endianness issues) 2008-10-18 20:23:46 +02:00
Bernhard Leiner
7989d67052 C implementation of revlog index parsing 2008-10-17 01:03:38 +02:00
Matt Mackall
1c5fcf7d0e dirstate: C parsing extension 2008-10-12 15:21:08 -05:00
Matt Mackall
b98e1b895d parsers: speed up hex decoding for manifests 2008-10-12 15:21:08 -05:00
Matt Mackall
9124c02fed parsers: clean up whitespace 2008-10-12 15:21:08 -05:00
Dhruva Krishnamurthy
343c16ff75 Fix missing uint64_t definition in parsers.c under Windows 2008-10-18 14:43:20 +02:00
Benoit Boissinot
5e3666db4b fix const annotation warning 2008-03-28 19:47:22 +01:00
Bryan O'Sullivan
8a988e392e manifest: improve parsing performance by 8x via a new C extension 2008-03-26 10:12:10 -07:00