chiark / gitweb /
common: Avoid undefined behavior.
authorJustus Winter <justus@g10code.com>
Thu, 30 Mar 2017 13:44:35 +0000 (15:44 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit0d2bab1fb95601b821ff0ab79960ec50716c689a
tree9bdaeb344cb5731958d4582818a3ff1377ebfa97
parentbde84793e1590ba98c4aea24cc2f64af1337342e
common: Avoid undefined behavior.

* common/iobuf.c (iobuf_read_line): Do not consider 'length' if
'buffer' is NULL.

Signed-off-by: Justus Winter <justus@g10code.com>
(cherry picked from commit 214fa9012296d796b78f1a3106d656639cf50aef)

Gbp-Pq: Name 0058-common-Avoid-undefined-behavior.patch
common/iobuf.c