slirp: use correct size while emulating commands
While emulating services in tcp_emu(), it uses 'mbuf' size 'm->m_size' to write commands via snprintf(3). Use M_FREEROOM(m) size to avoid possible OOB access. Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Message-Id: <20200109094228.79764-3-ppandit@redhat.com>
parent
ce131029
Loading
Loading
Pipeline
#96305
passed
with stage
in
2 minutes and 37 seconds
Loading
Please register or sign in to comment