Ticket #3437: (custom_canonicalize_pathname): fix heap-buffer-overflow.
commit4821259d85f8e9508a6447b8ddf47348d21f79cd
authorAndreas Mohr <and@gmx.li>
Sat, 11 Apr 2015 09:47:52 +0000 (11 12:47 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 3 May 2015 16:43:49 +0000 (3 19:43 +0300)
tree407d4d9291a7406c5e10f2081be39be992f84fe4
parentc9b07317c3f2358323370194ff526df75e09a0ac
Ticket #3437: (custom_canonicalize_pathname): fix heap-buffer-overflow.

Only use strncmp when path has enough room (greater then url_delim_len
size).
Overflow happen when path = './'.

(Found by AddressSanitizer.)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/utilunix.c