|
|
Message-ID: <20260908172902.GT3542221@port70.net> Date: Tue, 8 Sep 2026 19:29:02 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: regex fixes from upstream some bug fixes i found in upstream tre repo. btw while looking at regex code i've seen low hanging fruits to do cleanup if anybody wants a pet project.. - optimize memory use by more compact struct layout or better malloc pattern. - upstream has some algorithmic changes that may save a bit too, i havent seen anything big. - better usage of the tre stack for ast traversal is likely possible. - long code_min/max should be int (?) drop casts. - would be useful to collect tests / try upstream ones (we dont support all upstream features though). - make it easy to build outside musl see mallocng glue.h (helps with fuzzing/static analisys) - or just write a new one. View attachment "0001-regex-fix-BRE-with-backref-to-repetition.patch" of type "text/x-diff" (1103 bytes) View attachment "0002-regex-a-regcomp-assert-was-always-true.patch" of type "text/x-diff" (922 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.