open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
17 stars 39 forks source link

Fix corner case #99

Closed deepakala-k closed 2 months ago

deepakala-k commented 2 months ago

In contains_substring_ignoring_case, if the string that we are looking for is longer than the source string, return with string not found. Earlier the char array index went out of bounds due to invalid arthimetic operation on the index.

Tested and found the method working as expected.