summaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorPaul Meyer <Paul.Meyer@microsoft.com>2017-11-14 23:06:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-16 12:32:26 +0300
commit843bf4aa1aad6f968152390142016c0566899a4f (patch)
tree5921febadb0a52b1b553e0b42d0bf7ad1536344a /scripts/Makefile
parent08fa6f2e23c519cefbf03d27731e04babf076cb4 (diff)
downloadlinux-843bf4aa1aad6f968152390142016c0566899a4f.tar.xz
hv: kvp: Avoid reading past allocated blocks from KVP file
commit 297d6b6e56c2977fc504c61bbeeaa21296923f89 upstream. While reading in more than one block (50) of KVP records, the allocation goes per block, but the reads used the total number of allocated records (without resetting the pointer/stream). This causes the records buffer to overrun when the refresh reads more than one block over the previous capacity (e.g. reading more than 100 KVP records whereas the in-memory database was empty before). Fix this by reading the correct number of KVP records from file each time. Signed-off-by: Paul Meyer <Paul.Meyer@microsoft.com> Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile')
0 files changed, 0 insertions, 0 deletions