X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fsunrpc%2Fcache.c;h=51b23bc015420b39771e79838bdebfb435441403;hp=7de935a22353add65fa18e20b5d07149785a1ab5;hb=bcc72ad56466afc46c5637f7f9a76eee956e5c77;hpb=19090c1839987a3e0a9c5263ef9a2f8bf6b6c3a4 diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 7de935a22353..51b23bc01542 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -1211,7 +1211,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]);