[Slirp] [PATCH] slirp: ncsi: compute checksum for valid data length

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Dec 30 08:47:20 UTC 2019


Hello,

P J P, le lun. 30 déc. 2019 12:09:34 +0530, a ecrit:
> 'ncsi_calculate_checksum' computes an optional checksum value for
> the ncsi response packet by reading the data as series of 2 byte
> words. But it receives the data length in no of bytes. Fix the for
> loop to run for half the iterations to compute checksum for valid
> data bytes and avoid OOB access.

Applied, thanks!

Samuel


More information about the Slirp mailing list