]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: tools: fix build warning in the date conversion functions
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2019 10:26:29 +0000 (11:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Feb 2019 10:30:04 +0000 (11:30 +0100)
commit4eee38aa577c37dfd761e2f2d10cfa54fbb6a662
tree7b415acfa4fed0f0375f0675d22b0155d382b739
parent1ef724e2169eaff7f0272278c3fba9b34d5c7f78
BUILD/MINOR: tools: fix build warning in the date conversion functions

Some gcc versions emit potential null deref warnings at -O3 in
date2str_log(), gmt2str_log() and localdate2str_log() after utoa_pad()
because this function may return NULL if its size argument is too small
for the integer value. And it's true that we can't guarantee that the
input number is always valid.

This must be backported to all stable versions.
src/standard.c