[pcre-dev] [Bug 2661] Use of uninitialized-value from pcre_c…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2661] Use of uninitialized-value from pcre_compile2
https://bugs.exim.org/show_bug.cgi?id=2661

--- Comment #3 from Petr Pisar <ppisar@???> ---
Created attachment 1339
--> https://bugs.exim.org/attachment.cgi?id=1339&action=edit
Use STRNCMP_UC_UC() instead of strcmp()

This patch should fix the bug differently. It calls STRNCMP_UC_UC(..., length)
instead of memcmp(). But for an unknown reason clang still complains that
strncnp() accesses uninitialized slot[IMM2_SIZE+1] when comparing the already
stored "f" against a new "fir>)". But that cannot be true because
slot[IMM2_SIZE+1] was set to 0 in a previous add_name() call when copying the
string in the last but not one line of add_name(). I checked the memory address
matches. I have no idea what's wrong.

--
You are receiving this mail because:
You are on the CC list for the bug.