mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
FFstrbuf: adds integer overflow checks to EnsureFreeNoCheck and EnsureFixedLengthFree
This commit is contained in:
+1
-1
@@ -414,7 +414,7 @@ int main(void) {
|
||||
ffStrbufInit(&strbuf);
|
||||
ffStrbufEnsureFixedLengthFree(&strbuf, 0);
|
||||
VERIFY(strbuf.length == 0);
|
||||
VERIFY(strbuf.allocated == 0);
|
||||
VERIFY(strbuf.allocated == 1);
|
||||
ffStrbufDestroy(&strbuf);
|
||||
|
||||
// ffStrbufEnsureFixedLengthFree / empty buffer but oldFree >= newFree
|
||||
|
||||
Reference in New Issue
Block a user