Peter Van der Beken
baaea5c0bc
Bug 1584907 - Deny internal entities closing the doctype. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D47704
--HG--
extra : moz-landing-system : lando
2019-10-04 09:38:58 +00:00
Peter Van der Beken
3991c12564
Bug 1539759 - Improve DTD entity handling. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D30248
--HG--
extra : moz-landing-system : lando
2019-05-21 18:24:02 +00:00
Mihai Alexandru Michis
8187c0826d
Backed out changeset 16c03995ac55 (bug 1539759) for causing Buffer Overflow in nsExpatDriver.cpp
...
--HG--
extra : rebase_source : 0b9e64681becc725d8550f4a6820166ce8fba2bf
2019-05-13 18:16:39 +03:00
Peter Van der Beken
068b07cee6
Bug 1539759 - Improve DTD entity handling. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D30248
--HG--
extra : moz-landing-system : lando
2019-05-13 07:32:42 +00:00
Cosmin Sabou
58c0da101a
Backed out changeset 03166449953f (bug 1539759) on request from past for causing bug 1548990. CLOSED TREE
2019-05-04 11:02:30 +03:00
Gijs Kruitbosch
c1c14ab7ad
Bug 1539759 - improve DTD entity handling, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D27904
--HG--
extra : moz-landing-system : lando
2019-05-03 09:13:58 +00:00
Narcis Beleuzu
c8e45a1834
Backed out changeset 4c6e2e3f23f9 (bug 1539759) for failures on nsExpatDriver::WillBuildModel . CLOSED TREE
2019-05-02 13:42:29 +03:00
Gijs Kruitbosch
54d985d143
Bug 1539759 - improve DTD entity handling, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D27904
--HG--
extra : moz-landing-system : lando
2019-05-02 09:22:10 +00:00
Oana Pop Rus
594cead134
Backed out changeset 5f451bcec205 (bug 1539759) for build bustages in nsExpatDriver.cpp on a CLOSED TREE
2019-05-02 11:52:32 +03:00
Gijs Kruitbosch
170118c247
Bug 1539759 - improve DTD entity handling, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D27904
--HG--
extra : moz-landing-system : lando
2019-05-02 08:19:08 +00:00
Mike Hommey
e6ab5d959a
Bug 1516642
- Add a function declaration for arc4random_buf in expat. r=peterv
...
The function has been in bionic (Android's libc since the first commit
in the upstream repository), but it's not been in stdlib.h until
recently. As it happens, we have a similar declaration in
xpcom/base/nsUUIDGenerator.cpp.
Differential Revision: https://phabricator.services.mozilla.com/D19120
--HG--
extra : moz-landing-system : lando
2019-02-08 13:48:36 +00:00
Peter Van der Beken
eb86fefb02
Bug 1374012 - Update to Expat 2.2.1. Part 18: various miscellaneous changes. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14457
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:26 +00:00
Peter Van der Beken
7a603b28e7
Bug 1374012 - Update to Expat 2.2.1. Part 17: add/change APIs that are not used in Gecko. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14456
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:25 +00:00
Peter Van der Beken
0e027c70be
Bug 1374012 - Update to Expat 2.2.1. Part 16: fix some issues with various compilers. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14455
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:24 +00:00
Peter Van der Beken
cf5d21461b
Bug 1374012 - Update to Expat 2.2.1. Part 15: ifdef some constants so they are only defined when used. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14454
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:23 +00:00
Peter Van der Beken
e88d24ea11
Bug 1374012 - Update to Expat 2.2.1. Part 14: Annotate memory allocators for GCC. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14453
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:22 +00:00
Peter Van der Beken
18fcb94d9e
Bug 1374012 - Update to Expat 2.2.1. Part 13: Tidy up attribute prefix bindings on error. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14452
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:21 +00:00
Peter Van der Beken
5793b635bc
Bug 1374012 - Update to Expat 2.2.1. Part 12: Address warning "missing initializer for field". r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14451
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:20 +00:00
Peter Van der Beken
a3204ff408
Bug 1374012 - Update to Expat 2.2.1. Part 11: Changes to defines for various compilers. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14450
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:19 +00:00
Peter Van der Beken
f652ec9604
Bug 1374012 - Update to Expat 2.2.1. Part 10: Take into account that CHAR_MATCHES may read >1 bytes. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14449
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:18 +00:00
Peter Van der Beken
e0c4b31e3c
Bug 1374012 - Update to Expat 2.2.1. Part 9: Make XmlConvert return errors. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14448
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:17 +00:00
Peter Van der Beken
7afc61faae
Bug 1374012 - Update to Expat 2.2.1. Part 8: Validate parser argument in various APIs. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14447
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:16 +00:00
Peter Van der Beken
90a42151df
Bug 1374012 - Update to Expat 2.2.1. Part 7: Add __unused__ anotations. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14446
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:16 +00:00
Peter Van der Beken
bebd150ad3
Bug 1374012 - Update to Expat 2.2.1. Part 6: Add XML_ATTR_INFO code which we don't enable. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14445
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:15 +00:00
Peter Van der Beken
6a0c98bfbf
Bug 1374012 - Update to Expat 2.2.1. Part 5: Use ASCII_* instead of literal characters. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14444
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:14 +00:00
Peter Van der Beken
cc52d0e9e6
Bug 1374012 - Update to Expat 2.2.1. Part 4: removing mainlined customisations and merge whitespace changes. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14443
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:13 +00:00
Peter Van der Beken
650f9e44c2
Bug 1374012 - Update to Expat 2.2.1. Part 3: Reject invalid DTD. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14442
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:12 +00:00
Peter Van der Beken
177f23f661
Bug 1374012 - Update to Expat 2.2.1. Part 2b: cherry-pick compilation fix from 2.2.2. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14441
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:11 +00:00
Peter Van der Beken
05221a9c4c
Bug 1374012 - Update to Expat 2.2.1. Part 2a: Better hashing. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14440
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:11 +00:00
Peter Van der Beken
f9a10464ec
Bug 1374012 - Update to Expat 2.2.1. Part 1: More correct calculations. r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D14439
--HG--
extra : moz-landing-system : lando
2018-12-27 15:13:10 +00:00
Joel Maher
246c210896
Bug 1345542 - add BUG_COMPONENT to parser/* files. r=hsivonen
...
MozReview-Commit-ID: 3ujsuyVNFlL
2017-03-10 12:31:45 -05:00
Peter Van der Beken
f87fcac9f4
Bug 569229 - Close outer entities when they're parsed even if we're blocking the parser. r=erahm.
...
--HG--
extra : rebase_source : 174edac48b2d6b52dc9fe3ad289de735695c65be
extra : source : e86a8b867c7578e082d572403753b3feaf75b0de
2016-09-06 15:24:06 +02:00
Aryeh Gregor
3b1cc7049b
Bug 1298818 - Port test_bug411103.html to wpt; r=jst
...
This allows other UAs to use it, removes duplicated checks, and
increases the chance of us noticing if the spec changes. Some of the
expected values in our mochitest were contrary to the spec.
I checked the new expected failures against the spec and the other UAs.
I filed a spec bug for one group because it was contrary to all UAs
(although IMO the spec makes more sense and the UAs are buggy), and the
others are fixed in the next patch.
MozReview-Commit-ID: 1j11XgfuErB
2016-10-26 16:49:36 +03:00
Phil Ringnalda
3582398bc9
Backed out 3 changesets (bug 1298818, bug 1299838) for invalid wpt log messages
...
CLOSED TREE
Backed out changeset 5c65378feacd (bug 1298818)
Backed out changeset 72f66ce70dd8 (bug 1298818)
Backed out changeset eb17677e8167 (bug 1299838)
2016-09-01 18:59:36 -07:00
Aryeh Gregor
00d6f39ca3
Bug 1298818 - Throw correct exception for names that start with Unicode characters that are only allowed at start; r=jst
...
The new behavior matches the specification, web-platform-tests, Chrome,
and Edge. I couldn't figure out any reason for the old behavior.
MozReview-Commit-ID: 6cktZuN1vCV
2016-09-01 20:37:35 +03:00
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Eric Rahm
b2ddb18a6f
Bug 1274777 - Check for oveflow. r=peterv
2016-06-08 13:54:05 -07:00
Eric Rahm
5e7354d86b
Bug 1236923 - Check int for overflow. r=peterv
2016-05-21 10:05:05 -07:00
Boris Zbarsky
653b3eb5a3
Bug 1273282. Fix the handling of numeric entities in xml-stylesheet href values. r=peterv
2016-05-19 13:48:11 -04:00
Gregory Szorc
0f46d6549f
Bug 1256558 - Change MUST_CONVERT to avoid C4311 in VS2015; r=khuey
...
This code is cherry picked from the trunk version of expat.
MozReview-Commit-ID: 8RDaArq2BwO
--HG--
extra : rebase_source : 72d9b56ec2d6d17a99e578017f0e5828ffd3aa1f
2016-03-21 12:00:41 -07:00
Nicholas Nethercote
b921f6cb7f
Bug 1232219 (part 2.5) - Fix -Wunused warnings in parser/expat/lib/. r=hsivonen.
...
--HG--
extra : rebase_source : 9233441457728a336aa358037a1a8abebb759193
2015-12-16 22:56:34 -08:00
David Major
ebde6b9f4f
Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
...
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Eric Rahm
cf23af9062
Bug 1140537 - Sanity check size calculations. r=peterv
...
--HG--
extra : rebase_source : d50fbc5bb6fb2a0d7f29246a7bda45fabac48e29
2015-04-10 15:50:23 -07:00
Nathan Froyd
fe7e028fff
Bug 1112222 - remove moz_extensions.c from GENERATED_FILES in parser/expat/lib/; r=mshal
...
moz_extensions.c isn't generated by the build process; it lives as a
checked-in file and is #include'd by xmltok.c in the same directory.
2014-12-16 13:36:11 -05:00
Chris Peterson
7ab5947d2e
Bug 1031982 - Cast away -Wsign-compare warning in XML parser. r=peterv
2014-07-02 00:08:35 -07:00
Nicholas Nethercote
525e2f6682
Bug 1016153 - Avoid slop in xmlparse.c:poolGrow(). r=jst.
...
--HG--
extra : rebase_source : 3dd2fb91660c901f8ce12e22191aee3686172cd6
2014-05-29 16:05:19 -07:00
Ehsan Akhgari
468660ec5b
Bug 957356 - Use the correct string type for expat's XML_Char depending on the language to use; r=hsivonen
2014-01-10 01:36:35 -05:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Mike Hommey
8fd06cf41b
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-27 22:55:07 +09:00
Mike Hommey
b32a4ed166
Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
...
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00