GPattern does not work with non-NUL terminated strings
Submitted by Balazs Scheidler
Link to original bug (#549275)
Description
Please describe the problem:
Although g_pattern_match() expects a string-length to be passed, it does not in reality work with strings that are not zero terminated.
This is not stated in the documentation, but in any case, it is a useful feature to match substrings of a larger strings without having to copy that given substring just for zero termination.
Steps to reproduce:
- always, just pass a non-zero terminated string to g_pattern_match
Actual results:
Expected results:
Does this happen every time?
Other information:
Version: 2.16.x