On 2/19/25 7:45 AM, abhi wrote:
Signed-off-by: abhi <abhijith.uwc...@gmail.com>
---
  libiberty/memcmp.c | 3 +++
  1 file changed, 3 insertions(+)
Passing a NULL pointer to memcmp is undefined behavior, so if you're patching this in response to seeing a NULL pointer for str1 or str1, then you need to investigate where that pointer came from.

Patching memcmp isn't the right solution here.

jeff

Reply via email to