1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 09:19:36 +01:00

Use Boost's regex implementation instead of libstdc++'s

The latter runs in unbounded stack space so it crashes on large
inputs.

Fixes #4550.
This commit is contained in:
Eelco Dolstra 2021-02-17 16:13:24 +01:00
parent 6042febfce
commit 23a97b0079
4 changed files with 18 additions and 13 deletions

View file

@ -135,7 +135,7 @@
# Copy libboost_context so we don't get all of Boost in our closure.
# https://github.com/NixOS/nixpkgs/issues/45462
mkdir -p $out/lib
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*,libboost_regex*} $out/lib
rm -f $out/lib/*.a
${lib.optionalString stdenv.isLinux ''
chmod u+w $out/lib/*.so.*