diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-20 14:14:16 -0700 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-26 15:34:53 +0100 |
| commit | 219512e7989340d9efae8480fb79c08b91724014 (patch) | |
| tree | 410b36e533b9c33738b885894733e600e46e7a0e /ci | |
| parent | 6d6700d23860d21e8e5043e5c7689a6ed4d8fc70 (diff) | |
| download | libgit2-219512e7989340d9efae8480fb79c08b91724014.tar.gz | |
buf tests: allocate a smaller size for the oom
On Linux (where we run valgrind) allocate a smaller buffer, but still an
insanely large size. This will cause malloc to fail but will not cause
valgrind to report a likely error with a negative-sized malloc.
Keep the original buffer size on non-Linux platforms: this is
well-tested on them and changing it may be problematic. On macOS, for
example, using the new size causes `malloc` to print a warning to
stderr.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions
