diff options
author | Jeff King <peff@peff.net> | 2018-07-24 06:51:08 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 10:19:29 -0700 |
commit | 26114c00be2cd49b97b18df69a909d3330886e9d (patch) | |
tree | 43da32d8a751ea7d022f1cb53f7b1eb732d509c8 /versioncmp.c | |
parent | reencode_string: use size_t for string lengths (diff) | |
download | tgif-26114c00be2cd49b97b18df69a909d3330886e9d.tar.xz |
strbuf: use size_t for length in intermediate variables
A few strbuf functions store the length of a strbuf in a
temporary variable. We should always use size_t for this, as
it's possible for a strbuf to exceed an "int" (e.g., a 2GB
string on a 64-bit system). This is unlikely in practice,
but we should try to behave sensibly on silly or malicious
input.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'versioncmp.c')
0 files changed, 0 insertions, 0 deletions