1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

libexpr: Make unsafeGetAttrPos not crash on noPos

Currently e.g. `builtins.unsafeGetAttrPos "abort" builtins` will
eventually segfault because pos->file is an unset Symbol.

Found by afl-fuzz.
This commit is contained in:
Tuomas Tynkkynen 2018-04-03 15:27:17 +03:00
parent 3fbaa230a2
commit af86132e1a
3 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
null

View file

@ -0,0 +1 @@
builtins.unsafeGetAttrPos "abort" builtins