Closed l2dy closed 7 months ago
If it is NULL, null pointer dereferencing in makeargs() would result in undefined behavior. https://developer.apple.com/documentation/xcode/null-reference-creation-and-null-pointer-dereference
UTF-8 was a red herring. It's makeargs() that should check if command is NULL before dereferencing *str.
makeargs()
command
*str
If it is NULL, null pointer dereferencing in makeargs() would result in undefined behavior. https://developer.apple.com/documentation/xcode/null-reference-creation-and-null-pointer-dereference