summaryrefslogtreecommitdiffstats
path: root/pbl/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-05-11 10:49:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-12 07:31:48 +0200
commitce0103c4d585a41d7e158e8d211502910752bfd9 (patch)
tree5a50f2801fb3aa78396f5b6be5f6bce9bed09854 /pbl/console.c
parentb1d6710dce6f2f5b7dff4d6f127a75acad8da9af (diff)
downloadbarebox-ce0103c4d585a41d7e158e8d211502910752bfd9.tar.gz
barebox-ce0103c4d585a41d7e158e8d211502910752bfd9.tar.xz
fs: nfs: Fix readlink max size check
We must at maximum use all remaining bytes from the packet. This means we have to set length to the *minimum* of the desired length and the remaining bytes, not the *maximum*. /me goes hiding somewhere... Fixes: 574ce99401 ("fs: nfs: Fix possible buffer overflow") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl/console.c')
0 files changed, 0 insertions, 0 deletions