[2.7] bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) by vstinner · Pull Request #3351 · python/cpython · GitHub
Skip to content

[2.7] bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) - #3351

Closed
vstinner wants to merge 4 commits into
python:2.7from
vstinner:expat224_27
Closed

vstinner wants to merge 4 commits into
python:2.7from
vstinner:expat224_27

Conversation

@vstinner

@vstinner vstinner commented Sep 5, 2017

Copy link
Copy Markdown
Member
  • bpo-31170: Update libexpat from 2.2.3 to 2.2.4

Fix copying of partial characters for UTF-8 input (libexpat bug 115):
libexpat/libexpat#115

  • Add NEWS entry.

(cherry picked from commit 759e30e)

https://bugs.python.org/issue31170

* bpo-31170: Update libexpat from 2.2.3 to 2.2.4

Fix copying of partial characters for UTF-8 input (libexpat bug 115):
libexpat/libexpat#115

* Add NEWS entry.

(cherry picked from commit 759e30e)
tiran
tiran previously requested changes Sep 5, 2017

@tiran tiran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaks Windows builds:

..\Modules\expat\xmltok.c(34): fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory [C:\projects\cpython\PCbuild\pyexpat.vcxproj]

@bedevere-bot

Copy link
Copy Markdown

The standard header stdbool.h is not available
with old Visual Studio compilers

Cherry-picked from libexpat b4b89c2ab0cc5325a41360c25ef9d2ccbe617e5c.
@vstinner

vstinner commented Sep 5, 2017

Copy link
Copy Markdown
Member Author

"Breaks Windows builds: ..\Modules\expat\xmltok.c(34): fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory [C:\projects\cpython\PCbuild\pyexpat.vcxproj]"

I spent 15 minutes to write a fix for libexpat. But i was working on the 2.2.4 branch, in fact the bug is already fixed upstream: libexpat/libexpat@b4b89c2

So I cherry-picked the fix.

…pilation.

Cherry-picked from libexpat commit e0b290eb3d8f4c4b45137a7d7f4f8db812145bd2
@vstinner
vstinner dismissed tiran’s stale review September 6, 2017 00:12

Yeah, tests pass on Windows (AppVeyor) :-)

@benjaminp

Copy link
Copy Markdown
Contributor

Thanks. Since this is going into 2.7.14 final, I'll deal with it.

@benjaminp

Copy link
Copy Markdown
Contributor

@benjaminp benjaminp closed this Sep 6, 2017
@vstinner
vstinner deleted the expat224_27 branch September 6, 2017 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants