mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #134] [CLOSED] fix RuntimeError by terminating kwlist with NULL pointer #745
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/134
Author: @anthrotype
Created: 8/10/2015
Status: ❌ Closed
Base:
master← Head:fix-osx📝 Commits (1)
f5bb788[brotlimodule.cc] fix RuntimeError on OS X: keyword list must be NULL terminated📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
python/brotlimodule.cc(+1 -1)📄 Description
The
<malloc.h>header is non-standard, and causes compilation error on OS X:Just including
<stdlib.h>should be sufficient in this case.I also realised that I broke the
brotli.compressfunction in #131... at least on OS X, running the tests raises:That's because I forgot to terminate the
kwlistarray withNULLpointer.Sorry about that.
Strangely enough this error doesn't occur on Windows.
That's one more reason to have continuous integration systems like Travis/Appveyor running tests on multiple platforms. As a bonus, we could have them automatically build Python wheels for both Win and Mac, and deploying them to Github Releases every time a new release is tagged.
I'll send a specific PR for that soon.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.