summaryrefslogtreecommitdiff
path: root/socket/udp-bsd.c
diff options
context:
space:
mode:
authorJakub Adam <jakub.adam@ktknet.cz>2018-10-31 01:56:39 +0100
committerJakub Adam <jakub.adam@ktknet.cz>2018-10-31 12:45:16 +0100
commit5496500b1535d9343fdac2a3408864643fe65d7e (patch)
tree9d293f82952f99d6c555cca7898e16bbe2c91a79 /socket/udp-bsd.c
parentd79d1179113f4847aceb8249ce7d75ca6fc8c140 (diff)
downloadlibnice-5496500b1535d9343fdac2a3408864643fe65d7e.tar.gz
agent: check message length before extracting RFC4571 frame size
nice_socket_recv_messages() may return a NiceInputMessage of length = 0, so before attempting to read the RFC4571 header check the message really has at least sizeof (guint16) bytes of data. The bug's always been there, the previous commit only made it more apparent.
Diffstat (limited to 'socket/udp-bsd.c')
0 files changed, 0 insertions, 0 deletions