Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native/libc] Don't crash when parsing regexes on FreeBSD (#413)
Before: ``` osh$ [[ 1 =~ [0-9] ]] Segmentation fault (core dumped) ``` After: ``` osh$ [[ 1 =~ [0-9] ]] osh$ echo $? 0 ``` This happened because libc.c used the GNU regex library headers but used the BSD library when dynamically linked. I'm not sure why it was using different headers, maybe Python was originally statically linked?
- Loading branch information