X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=parse.c;h=db2f5a42f85aa68b5c7e768f0dee5f2be14cef2a;hb=477a6d45a3c7c6e9f538cadba78468b677829e17;hp=d8061610a8a92563c3701b02e8e7ee305f480ee5;hpb=808def7036ddfaf6f0ec2f5ecce031fd46ce40ef;p=fio.git diff --git a/parse.c b/parse.c index d8061610..db2f5a42 100644 --- a/parse.c +++ b/parse.c @@ -169,6 +169,9 @@ static unsigned long long get_mult_bytes(const char *str, int len, void *data) { const char *p; + if (len < 2) + return __get_mult_bytes(str, data); + /* * if the last char is 'b' or 'B', the user likely used * "1gb" instead of just "1g". If the second to last is also