Closed nikolay-govorov closed 10 months ago
Hi,
Thanks for reporting it, but this file is not used.
You could take a look at nxt_array.h/c
instead which does the same thing.
We don't maintain these unused files and we might consider deleting them in the future.
Oh yes indeed, nxt_array
works great and did not inherit this problem. Thank you.
Thanks for the work you are doing. Unit is a really great tool.
I found that when system increase the size if
nxt_ vector_t
, the function copy more bytes into the new buffer from the old buffer than there are (the new size, not the old). This usually doesn't result in an apparent error since there is something in the allocator buffer, but occasionally it can end in a segfault.The address-sanitizer will also not tell you this because of its own allocator. You could potentially markup your allocator to see such errors in tests.