[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] bt: use size_t type for length parameters inste
From: |
P J P |
Subject: |
Re: [Qemu-devel] [PATCH] bt: use size_t type for length parameters instead of signed int |
Date: |
Thu, 18 Oct 2018 17:31:07 +0530 (IST) |
+-- On Thu, 18 Oct 2018, Paolo Bonzini wrote --+
| So you have to first find out all places where something is subtracted
| from the length, and ensure it's okay or add assertions.
|
| Then you have to check a much more important issue: places that use a
| fixed-size buffer such as vhci_host_send should range check len first, again
| with an assertion if needed.
Okay. There are routines which range check 'len', checking others.
Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F