Sebastian Pipping
be4b1c06da
Merge branch 'cve-2016-0718-fix-2-2-1'
...
Conflicts:
expat/lib/xmltok.c
2016-05-17 21:08:21 +02:00
Pascal Cuoq
a1bc009dd4
Do not compare an out-of-bounds pointer. See https://lwn.net/Articles/278137/
2016-05-16 16:11:01 +02:00
Sebastian Pipping
2106ee4050
Fix left shift signed overflow
...
lib/xmltok.c:1407:11: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
lib/xmltok.c:1409:16: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
2016-05-15 14:04:09 +02:00
Sebastian Pipping
69746f5ab2
Address all "unused parameter" warnings
2016-05-07 17:24:35 +02:00
Sebastian Pipping
a9b80b4ae4
Make converters tell state on termination (v3)
2016-05-02 01:00:32 +02:00
Sebastian Pipping
e18829b4ff
Prevent out-of-bounds access in text conversion
...
* big2_toUtf8
* little2_toUtf8
* utf8_toUtf8
* utf8_toUtf16
2016-05-02 01:00:32 +02:00
Karl Waclawek
bb1fd81b98
Fix overflow (v2)
...
(Some post-processing by Sebastian Pipping)
2016-05-02 01:00:27 +02:00
Sebastian Pipping
6d8696fc55
Address warning "missing initializer for field"
2016-03-28 21:35:55 +02:00
Sebastian Pipping
bdee307f19
Turn COMPILED_FROM_DSP into COMPILING_FOR_WINDOWS
...
.. since it is used with that semantic by now
2016-03-28 18:18:09 +02:00
Steven Solie
ca17d1eae6
AmigaOS specific changes. See amiga/README.txt for more details.
2009-01-31 06:21:09 +00:00
Karl Waclawek
3ff6041e90
Change for MS VC++: Added #ifdefs to allow for passing xmltok_impl.c and
...
xmltok_ns.c to the compiler (to make them visible in IDE).
2006-11-26 17:34:46 +00:00
Karl Waclawek
e3e0d28628
Applied patrch #1523242 - support for Open Watcom 1.5.
2006-08-05 17:01:43 +00:00
Steven Solie
e6beafd504
Added AmigaOS support.
2005-02-26 01:38:13 +00:00
Karl Waclawek
d265895d31
Fix for bug #1065044 . Improved const correctness.
2004-11-26 14:56:52 +00:00
Karl Waclawek
cac0ed29a8
Renamed exrternal.h to expat_external.h.
...
Fixed up references to this file.
2004-05-06 13:55:49 +00:00
Karl Waclawek
6361de48a2
Would not build on Linux without including stddef.h before
...
including external.h.
2004-04-24 23:56:41 +00:00
Karl Waclawek
9b665601fd
Fix for bug #923913 , Calling convention problems.
...
For details see bug description.
2004-03-26 14:24:11 +00:00
Fred L. Drake, Jr.
99609421a8
Make it possible to avoid the import of expat_config.h. This makes it
...
easier to compile Expat without the autoconf support.
This closes SF patch #458907 .
2003-10-16 04:51:11 +00:00
Karl Waclawek
ed47baa513
Applied patch for bug #653449 .
2002-12-14 03:12:18 +00:00
Fred L. Drake, Jr.
9a41111b9d
Add some type casts to deal with MALLOC signature checking for
...
some platforms.
Closes SF bug #644334 .
2002-11-27 04:03:33 +00:00
Fred L. Drake, Jr.
0a40843bde
Remove trailing whitespace.
2002-11-12 21:49:36 +00:00
Karl Waclawek
5ca83cc911
Changed calling convention macros to differentiate between
...
different types of function calls - see comments in internal.h.
2002-09-20 03:42:43 +00:00
Karl Waclawek
633caf8040
Fred and I added FASTCALL directives to xmltok.c and related files.
2002-09-05 18:21:01 +00:00
Karl Waclawek
969d3363fe
Fix for bug #600479 : error decoding UTF-8 triplet
2002-08-27 00:28:48 +00:00
Karl Waclawek
f54c938123
Applied patch for bug #434664 : utf8_toutf16 infinite loop.
2002-07-29 01:05:11 +00:00
Fred L. Drake, Jr.
93deea5e26
Shorten all lines longer than 80 characters to be shorter than 80.
...
Required for OS/400 support.
2002-07-25 14:51:19 +00:00
Fred L. Drake, Jr.
8c14959eac
Fix typo from manual application of the Mac OS classic patch.
2002-07-09 13:57:18 +00:00
Fred L. Drake, Jr.
501a5b3525
Mac OS (classic) support, based on patches from Thomas Wegner and
...
Daryle Walker.
2002-07-08 17:06:55 +00:00
Fred L. Drake, Jr.
7fea03e40e
De-tabify; minor code-style consistency changes.
2002-07-01 16:46:08 +00:00
Karl Waclawek
c8d098f364
Fix for bug # 566240.
2002-06-09 14:01:47 +00:00
Karl Waclawek
b1743f5705
Applied patch # 562005 "Detect invalid UTF-8 sequences"
2002-05-30 18:02:59 +00:00
Greg Stein
5b5355d8c5
Hard to believe, but there are some preprocessors/compilers out there
...
which don't like spaces between the '#' and the preprocessor command.
* expat.h, xmlparse.c, xmlrole.c, xmltok.c:
- remove all spaces between the '#' and the cpp command.
2002-05-20 11:06:41 +00:00
Greg Stein
de857347b6
Remove acconfig.h altogether by removing XML_BYTE_ORDER. We can simply
...
use the BYTEORDER constant that ac_c_bigendian_cross.m4 generates.
* accconfig.h: removed; obsolete.
* lib/winconfig.h:
- set the BYTEORDER constant, rather than XML_BYTE_ORDER, and leave
a note about what we're assuming.
* lib/xmltok.c, lib/xmltok_ns.c:
- change all XML_BYTE_ORDER references to BYTEORDER, and
update the constants from 12, 21 to 1234, 4321 respectively.
2002-05-17 21:42:05 +00:00
Greg Stein
9fcff4a9eb
Various configuration fixes, focused primarily around expat_config.h
...
(which used to be called config.h)
* configure.in:
- change the header name to expat_config.h to prevent any possible
conflict with some other packages 'config.h'
- add a prerequisite on autoconf 2.50 or newer
- shift some acconfig.h values to AC_DEFINE() values
* MANIFEST:
- rename config.h.in to expat_config.h.in
* Makefile.in:
- clean out expat_config.h* instead of config.h*
* acconfig.h:
- remove the XML_NS, XML_DTD, and XML_CONTEXT_BYTES symbols; they
are now defined directly by configure.in
- shift the memmove() compatibility to xmlparse.c, its only consumer
- remove the @BOTTOM@ part since there are no more values to put at
the bottom of expat_config.h.in via acconfig.h
* xmlparse.c:
- switch from config.h to expat_config.h
- insert macro to define memmove() if it isn't available, but
bcopy() is available. also, changed one branch to #error rather
than insert bogus code.
* xmlrole.c:
- tweak the copyright header, per Fred-ism
- remove the unused RCSId[] variable (no other file has these)
- switch from config.h to expat_config.h
* xmltok.c:
- switch from config.h to expat_config.h
2002-05-17 21:30:07 +00:00
Fred L. Drake, Jr.
65b4ed8f47
Using "0" instead of "NULL" is insane, and leads to unmaintainable code.
...
Fix a number of other "code-hygiene" consistency nits.
2002-05-17 18:47:53 +00:00
Fred L. Drake, Jr.
7040180274
Minor nit; layout function signatures in a more consistent way.
2002-05-17 18:17:33 +00:00
Fred L. Drake, Jr.
fa2455c305
Include a more reasonable definition of the UTF8_INVALID3() macro.
...
It still is not used anywhere, though. ;-(
2002-05-17 18:05:06 +00:00
Fred L. Drake, Jr.
6556c9be67
Wrap some long lines, including ones I just introduced.
...
There ought to be a good way to use a real editor with MSCV!
2002-04-26 05:14:20 +00:00
Fred L. Drake, Jr.
79aab4b10a
Cut down on the warnings from MSVC6 on Warning Level 4.
2002-04-26 04:46:24 +00:00
Fred L. Drake, Jr.
712c70975d
Remove useless RCSId static from the code.
2001-07-25 17:18:43 +00:00
Fred L. Drake, Jr.
a6823aa552
Fix SF bug #123767 : segfault on UTF-8 BOM.
...
(Reported with fix by Bruce Kaskel.)
2001-02-16 18:12:49 +00:00
Clark Cooper
ae2257acce
Changes for compiling under Microsoft Dev Studio.
2000-10-22 19:20:23 +00:00
Clark Cooper
aa45fb851a
Versioning information, fill in Changes file, possible final commit before
...
first release (1.95.0)
2000-09-29 14:57:45 +00:00
Clark Cooper
e8b7b5fa4f
Fixes to allow DLLs to built under Windows.
2000-09-28 17:53:00 +00:00
Clark Cooper
c446fb274e
Merged in modifications from perl-expat. Also fiddled around with more
...
configuration issues.
2000-09-21 21:20:18 +00:00
Clark Cooper
c135be083d
These are the first check-ins for the libexpat task: create configuration
...
files and setup for building a shareable libexpat.
2000-09-18 16:26:23 +00:00