projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
To figure out if we're going outside the buffer, use the size of the buffer,
[openssl.git]
/
crypto
/
bio
/
b_print.c
diff --git
a/crypto/bio/b_print.c
b/crypto/bio/b_print.c
index de74ec6df9d49d6210311d70828a2b70f77c7cf1..960a049bcafda3d5197730931597ed9cdf34b8bb 100644
(file)
--- a/
crypto/bio/b_print.c
+++ b/
crypto/bio/b_print.c
@@
-652,8
+652,8
@@
fmtfp(
(caps ? "0123456789ABCDEF"
: "0123456789abcdef")[intpart % 10];
intpart = (intpart / 10);
(caps ? "0123456789ABCDEF"
: "0123456789abcdef")[intpart % 10];
intpart = (intpart / 10);
- } while (intpart && (iplace < (int)sizeof(i
place
)));
- if (iplace == sizeof i
place
)
+ } while (intpart && (iplace < (int)sizeof(i
convert
)));
+ if (iplace == sizeof i
convert
)
iplace--;
iconvert[iplace] = 0;
iplace--;
iconvert[iplace] = 0;
@@
-664,7
+664,7
@@
fmtfp(
: "0123456789abcdef")[fracpart % 10];
fracpart = (fracpart / 10);
} while (fplace < max);
: "0123456789abcdef")[fracpart % 10];
fracpart = (fracpart / 10);
} while (fplace < max);
- if (fplace == sizeof f
place
)
+ if (fplace == sizeof f
convert
)
fplace--;
fconvert[fplace] = 0;
fplace--;
fconvert[fplace] = 0;