Segfault in Security framework: AuthorizationExecuteWithPrivileges() wrapper

Issue #234 resolved
Vangelis Koukis
created an issue

I am playing with pyobjc's wrapper for AuthorizationExecuteWithPrivileges(). The documentation says I should be able to pass "NULL" as the value of the last argument, if I don't need a communications channel: https://developer.apple.com/documentation/security/1540038-authorizationexecutewithprivileg

However, Python segfaults if I call the wrapper with objc.NULL as its last argument.

It seems the code passes NULL properly at: https://bitbucket.org/ronaldoussoren/pyobjc/src/3e43c546753b7c600c01022201d7a31b66e1487f/pyobjc-framework-Security/Modules/_Security.m?at=default&fileviewer=file-view-default#_Security.m-725

But then still wants to build and return a Python value from the now-uninitialized value of FILE * communicationsPipe at: https://bitbucket.org/ronaldoussoren/pyobjc/src/3e43c546753b7c600c01022201d7a31b66e1487f/pyobjc-framework-Security/Modules/_Security.m?at=default&fileviewer=file-view-default#_Security.m-738

Comments (2)

  1. Log in to comment