Closed sthen closed 8 months ago
(Seems triggered by any file above 256k)
thanks - with valgrind I can see a problem which may be the same issue.
simple fix (which works for the test cases I have at hand):
--- fin.c 2023/08/08 21:57:08 1.51
+++ fin.c 2023/10/31 21:10:12
@@ -410,7 +410,6 @@
}
out:
- *target = 0;
return (size_t) (entry_size - size);
}
Thanks - this works for the other cases I've tried too.
I applied that on top of some other fixes, and will probably upload a new snapshot today or tomorrow.
Seen on OpenBSD -current amd64.
Seems there's a problem with the input buffer resizing done in https://github.com/ThomasDickey/mawk-snapshots/commit/139ba08238f68425ff51daf4deed68f8f8599e05.
The initial report was from somebody using an ugly domain blocklist processor; here's a simpler reproducer: