Created attachment 18205 [details] [review] Fix strndup implementation in PK The strndup implementation corrupts memory which may lead to a crash if it's passed a string which is not NUL-terminated. The API for strndup() states that is must handle non NUL-terminated strings. Attached is a patch which corrects this.
This bug report is for the old version of PolicyKit. Closing as all of the code has been rewritten. Please reopen if the bug report applies to the latest version of PolicyKit. Thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.