projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sunrpc/cache: fix off-by-one in qword_get()
[firefly-linux-kernel-4.4.55.git]
/
net
/
sunrpc
/
cache.c
diff --git
a/net/sunrpc/cache.c
b/net/sunrpc/cache.c
index 5e4f815c2b34d22fba11ac2443e9d66bc27c779c..21e20353178e05e4940512141ac50fc41d5f4954 100644
(file)
--- a/
net/sunrpc/cache.c
+++ b/
net/sunrpc/cache.c
@@
-1225,7
+1225,7
@@
int qword_get(char **bpp, char *dest, int bufsize)
if (bp[0] == '\\' && bp[1] == 'x') {
/* HEX STRING */
bp += 2;
- while (len < bufsize) {
+ while (len < bufsize
- 1
) {
int h, l;
h = hex_to_bin(bp[0]);