Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Feb 18, 2022

The libexpat 2.4.1 upgrade from introduced the following new exported symbols:

  • testingAccountingGetCountBytesDirect
  • testingAccountingGetCountBytesIndirect
  • unsignedCharToPrintable
  • XML_SetBillionLaughsAttackProtectionActivationThreshold
  • XML_SetBillionLaughsAttackProtectionMaximumAmplification

We need to adjust Modules/expat/pyexpatns.h

(The newer libexpat upgrade has no new symbols).

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit 6312c10)

Co-authored-by: Yilei "Dolee" Yang yileiyang@google.com

https://bugs.python.org/issue46784

…GH-31397)

The libexpat 2.4.1 upgrade from  introduced the following new exported symbols:

* `testingAccountingGetCountBytesDirect`
* `testingAccountingGetCountBytesIndirect`
* `unsignedCharToPrintable`
* `XML_SetBillionLaughsAttackProtectionActivationThreshold`
* `XML_SetBillionLaughsAttackProtectionMaximumAmplification`

We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h)

(The newer libexpat upgrade  has no new symbols).

Automerge-Triggered-By: GH:gpshead
(cherry picked from commit 6312c10)

Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
@gpshead
Copy link
Member

gpshead commented Feb 18, 2022

The expat upgrade was backported as a security fix in .11 or .12, this goes along with that. Unclear how often people actually run into the underlying exported symbol conflict issue in practice.

@ned-deily ned-deily merged commit 61f3c30 into python:3.7 Feb 21, 2022
@miss-islington miss-islington deleted the backport-6312c10-3.7 branch February 21, 2022 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants