Commit Graph

61 Commits

Author SHA1 Message Date
bluhm 751a8f41a9 Update libexpat to 2.5.0. This fixes CVE-2022-43680. Relevant for
OpenBSD are security fixes #616 #649 #650 and bug fixes #612 #645
#613 #654 #616 #652 #653.  No library bump necessary.
OK tb@
2022-10-27 12:58:37 +00:00
bluhm 9029d806cd Update libexpat to 2.4.9. This fixes CVE-2022-40674. Relevant for
OpenBSD are security fixes #629 #640 and other changes #610 #643.
No library bump necessary.
OK deraadt@
2022-09-20 23:00:52 +00:00
bluhm 680fbc6091 Update libexpat to 2.4.7. Relevant for OpenBSD are bug fixes #572
#577 and other changes #577 #579 #575 #574 #569 #571.  No library
bump necessary.
tested and OK tb@
2022-03-09 19:22:19 +00:00
bluhm 253fd6bf99 Update libexpat to 2.4.6. This fixes CVE-2022-25235, CVE-2022-25236
CVE-2022-25313, CVE-2022-25314, and CVE-2022-25315.  Relevant for
OpenBSD are security fixes #558 #559 #560 #561 #562 and bug fixes
#566.  No library bump necessary.
OK tb@
2022-02-22 10:53:10 +00:00
bluhm 7f817ade34 Update libexpat to 2.4.4. This fixes CVE-2022-23852 and CVE-2022-23990.
Relevant for OpenBSD are security fixes #550 #551 and other changes
#553 (missing in change log).  No library bump necessary.
OK millert@
2022-01-31 00:21:53 +00:00
bluhm 2c19dcf8d9 Update libexpat to 2.4.3. This fixes CVE-2021-45960, CVE-2021-46143,
and CVE-2022-22822 to CVE-2022-22827.  Relevant for OpenBSD are
security fixes #531 #534 #532 #538 #539 and other changes #527 #513
#514 #502 #503.  No library bump necessary.
OK millert@
2022-01-17 20:50:22 +00:00
bluhm 497fa8ab72 No longer patch away other entropy sources from libexpat. Upstream
expat uses arc4random_buf(3) as first option if available.  Drop
our local patch.  Behavior stays the same.  Updates will be easier.
Environment variable EXPAT_ENTROPY_DEBUG can be used to check that
arc4random_buf() is really used.
OK sthen@
2021-05-27 12:57:22 +00:00
bluhm 08819b4170 Update libexpat to 2.4.1. This fixes CVE-2013-0340. Relevant for
OpenBSD are security fixes #34 #466 #484 and other changes #467
#473 #483.  A new error number in a public header requires a major
library bump.  Two functions have been added to API.
OK tb@
2021-05-26 19:14:32 +00:00
bluhm 326b8ed6c1 Update libexpat to 2.3.0. Relevant for OpenBSD are only bug fix
#438 and other change #443.  A new error constant has been added
to a public header file.  According to guenther@ this is an ABI
break that requires a major bump.
OK tb@; tested by matthieu@
2021-05-10 17:36:48 +00:00
bluhm 2a4a206e72 Update libexpat to 2.2.10. Relevant are only bug fixes #390 #395
#398 #404 #405 and other changes #354 #355 #412.
OK deraadt@
2020-12-29 16:59:42 +00:00
bluhm 28ce311911 Update libexpat to 2.2.8. CVE-2019-15903 has been fixed earlier
in our tree.  Relevant is only bug fix #240.  Most of the upstream
diff is automated source format change.
OK deraadt@
2019-09-25 21:06:19 +00:00
bluhm 94f813b1ac Fix heap overflow in libexpat 2.2.7 triggered by XML_GetCurrentLineNumber
(or XML_GetCurrentColumnNumber), and deny internal entities closing
the doctype; CVE-2019-15903
fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43
OK tb@
2019-09-10 22:43:29 +00:00
bluhm 04da35325a Update libexpat to 2.2.7. Relevant for OpenBSD is only the fix for
CVE-2018-20843, a potential denial-of-service in libexpat due to
high RAM and CPU usage.
OK deraadt@
2019-06-29 00:33:59 +00:00
bluhm 797786e548 Update libexpat to 2.2.6. Relevant for OpenBSD is
- Avoid doing arithmetic with NULL pointers in XML_GetBuffer
- Fix 2.2.5 regression with suspend-resume while parsing
  a document like '<root/>'
- Address compiler warnings
- Fix miscellaneous typos
2018-08-22 13:32:11 +00:00
bluhm 9b8e235178 Update libexpat to 2.2.5. Changes for OpenBSD include a few bug
fixes, no library bump needed.
OK deraadt@
2017-11-02 13:40:57 +00:00
bluhm 2e724bc967 Update libexpat to 2.2.4. Fix copying partial UTF-8 characters.
OK deraadt@
2017-08-23 14:53:52 +00:00
bluhm 5837d4fc84 Update libexpat to 2.2.3. Only few changes affect OpenBSD.
OK deraadt@
2017-08-04 16:24:02 +00:00
aoyama afab3565a7 Gcc3 does not have -fvisibility feature, so skip -fvisibility=hidden
flag when compiling with gcc3.

ok espie@
2017-07-28 09:32:49 +00:00
bluhm 0d60d187cf Update libexpat to 2.2.2. Fixes NULL parser dereference.
no objections deraadt@
2017-07-19 20:24:07 +00:00
bluhm eb0cda88fa Add ULL suffix to 64 bit constants. This avoids compiler warnings
on i386 and allows to compile the C++ test.  Upstream dropped the
ULL in an insufficient attempt to make the siphash code C89 compatible.
Their fix will be more complicated.
No binary change.
2017-07-06 13:06:34 +00:00
bluhm 28fb0953a7 Compile libexpat with -fvisibility=hidden. This restricts the
exported symbols to the indended API.  We do not need a Symbols.map
anymore.  Major library bump is necessary as some internal functions
vanish from the ABI.
Discussed upstream with Sebastian Pipping; ports bulk build ajacoutot@;
OK deraadt@
2017-07-06 11:17:58 +00:00
bluhm 33ab7b2b9b Add test suite source files for expat 2.2.1. 2017-06-30 14:43:26 +00:00
bluhm d470451bed AmigaOS and pre-X Mac OS support has been dropped in upstream
libexpat.  Remove obsolete header files, missed in previous commit.
2017-06-30 13:25:02 +00:00
bluhm 2feb5d2a36 Update libexpat to version 2.2.1 which has some security fixes.
- CVE-2017-9233 CVE-2016-9063 CVE-2016-5300 CVE-2016-4472 CVE-2016-0718
  CVE-2015-2716 CVE-2015-1283 CVE-2012-6702 CVE-2012-0876 have been
  addressed.  Not all of them affect OpenBSD as we had fixes before.
- Upstream uses arc4random_buf(3) now.  Delete all code for other
  entropy sources to make sure to compile the correct one.  Our
  library already used arc4random(3) before.
- The overflow fixes in rev 1.11 and 1.12 of lib/xmlparse.c
  have been commited upstream in a different way.  Use the upstream
  code to make maintenance easier.
- Although it should be ABI compatible, there is a new global
  symbol align_limit_to_full_utf8_characters.  As it is in
  lib/internal.h, add a Symbols.map to restrict the export.  Do not
  bump the shared library version.
- Use the internal expat's siphash.h.
ports build ajacoutot@; move ahead deraadt@
2017-06-30 11:25:29 +00:00
natano e62d0eeaec Generate pkg-config files at build time like everything else. This
avoids permission problems due to the build and install stages being run
by different users.

ok deraadt jasper
2016-09-14 06:26:02 +00:00
natano 53c02d25e0 only regen pkg-config files when required; ok jasper 2016-09-04 09:54:25 +00:00
rpointel d9d225e44d Fix regression introduced by patch to CVE-2016-0718: Tag names were cut off in some cases. 2016-07-29 18:57:39 +00:00
rpointel 525cdfc7f2 fix CVE-2016-0718. 2016-05-31 19:47:31 +00:00
rpointel 23826f4028 re-add the check we have in revision 1.12.
ok jca@ (thanks).
2016-05-13 05:29:17 +00:00
rpointel 695f0d7b65 update libexpat to 2.1.1.
ok deraadt@ (thanks to sebastian[@]pipping[.]org for information).
2016-05-09 19:32:01 +00:00
krw c05e1f5dbd " the the " -> " the ", or in a couple of cases replace the superfluous
"the" with the obviously intended word.

Started with a "the the" spotted by Mihal Mazurek.
2016-03-20 16:50:29 +00:00
miod 0578a09499 More overflow checks in XML_GetBuffer(), adapted from FreeBSD security
advisory FreeBSD-SA-15:20. Most of them were already fixed by niallo@'s work,
which unfortunately got removed in r1.10 /-:

With help from doug@
2015-08-26 19:36:23 +00:00
miod e7b8b93cd3 Put back local changes (revisions 1.2 to 1.4), which unfortunately got lost in
the last upgrade.
ok deraadt@
2015-08-26 19:33:17 +00:00
jsg d528a8b350 define BYTEORDER so the endian tests will work
ok deraadt@ miod@
2015-05-23 00:53:25 +00:00
guenther 91a535ff42 Switch time_t, ino_t, clock_t, and struct kevent's ident and data
members to 64bit types.  Assign new syscall numbers for (almost
all) the syscalls that involve the affected types, including anything
with time_t, timeval, itimerval, timespec, rusage, dirent, stat,
or kevent arguments.  Add a d_off member to struct dirent and replace
getdirentries() with getdents(), thus immensely simplifying and
accelerating telldir/seekdir.  Build perl with -DBIG_TIME.

Bump the major on every single base library: the compat bits included
here are only good enough to make the transition; the T32 compat
option will be burned as soon as we've reached the new world are
are happy with the snapshots for all architectures.

DANGER: ABI incompatibility.  Updating to this kernel requires extra
work or you won't be able to login: install a snapshot instead.

Much assistance in fixing userland issues from deraadt@ and tedu@
and build assistance from todd@ and otto@
2013-08-13 05:52:02 +00:00
okan 7cd9afdf8e remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.
ok guenther@
2012-08-02 13:38:38 +00:00
jasper 05c3248a11 unbreak, pointed out by theo 2012-07-07 13:35:07 +00:00
jasper 4802b73fbc actually, make this identical to what upstream expat ships nowadays by adding
a URL field and removing the empty Requires.
2012-07-07 08:25:21 +00:00
jasper c2532eac88 add expat.pc
based on a diff by brad
ok sthen@
2012-07-07 08:14:43 +00:00
rpointel 6400bc34bd update libexpat to 2.1.0.
use arc4random instead of rand/srand in generate_hash_secret_salt,
spotted by nicm@ and deraadt@.
ok nicm@ deraadt@.
2012-04-01 18:52:01 +00:00
eric 0ad1cb5a7a sync libexpat with upstream. mostly formating cleanup, no binary change.
ok deraadt nicm
2010-06-26 17:21:00 +00:00
eric e75f470616 merge fixes from upstream (up to rev 1.167)
notably fix a regression in parsing DTD parameter entities.

ok miod@ nicm@
2010-05-13 20:38:25 +00:00
jasper 69374b686d Security fix for CVE-2009-3560, which could allow attackers to cause
a DoS using a specially crafted XML document with malformed UTF-8
sequences.

Patch taken from upstream CVS.
2009-12-27 18:42:45 +00:00
pvalchev f14316efa0 slightly more robust fix in not relying on utf-8 sequences being well
formed after discussion w/ upstream
2008-06-14 01:22:19 +00:00
pvalchev d461dfd34a fix parser crash w/ invalid UTF-8 char sequences (all apps that use expat
for XML parsing are affected)

reported & fixed in upstream cvs
2008-06-12 19:18:50 +00:00
deraadt bb52378f04 pretty 2007-10-19 16:06:39 +00:00
deraadt 07619e0a97 do not install them silently 2007-10-19 14:29:41 +00:00
espie 4d56e66bde synch expat major number with xenocara, and then some.
activate it in the build.
2007-10-18 19:21:36 +00:00
matthieu b26ab0f80a Update to expat 2.0.1. ok deraadt@ 2007-08-30 18:41:04 +00:00
alek 7d36914fb1 Update to 2.0.0; keep our local changes
ok espie@, djm@
2006-05-06 16:09:30 +00:00