]> git.saurik.com Git - apt.git/commit
avoid 416 response teardown binding to null pointer
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 5 Jul 2016 11:07:29 +0000 (13:07 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 5 Jul 2016 18:44:45 +0000 (20:44 +0200)
commit4460551841d909d3ee9c1de00156ed3cdf8b1665
tree9cd879c2463cbb474a816b04008e5345a2a3dd5d
parent60b48d4fc85593c9eabd8bea89fc6a7e6758410d
avoid 416 response teardown binding to null pointer

methods/http.cc:640:13: runtime error: reference binding to null pointer
of type 'struct FileFd'

This reference is never used in the cases it has a nullptr, so the
practical difference is non-existent, but its a bug still.

Reported-By: gcc -fsanitize=undefined
methods/http.cc
methods/http.h
methods/https.h
methods/server.h