]> git.ipfire.org Git - thirdparty/chrony.git/commit
Don't read uninitialized memory in client packet length check
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 21 Jan 2014 17:45:56 +0000 (18:45 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jan 2014 15:53:32 +0000 (16:53 +0100)
commit2fc3525fdf5c1da73eefeebcd7280c4404d5fd5f
treeca4620d644b6bf44e176c4c18bdee397fa9fbe4d
parent0f3e464202622ffbbd342b242382a92979a6e7d8
Don't read uninitialized memory in client packet length check

Before calling PKL_ReplyLength() check that the packet has full header.
This didn't change the outcome of the test if the packet was shorter as
the invalid result from PKL_ReplyLength() was either larger than length
of the packet or smaller than header length, failing the length check in
both cases.
client.c