Can segfault #5

Open
ndmitchell opened this Issue Nov 27, 2016 · 1 comment

Projects

None yet

1 participant

@ndmitchell
Collaborator

The library can segfault. Pugi requires the document to be kept alive while any nodes are being used, but the Haskell binding doesn't ensure that.

@ndmitchell
Collaborator

Example code:

segfault :: IO ()
segfault = forever $ do
    bs <- BS.readFile "example.xml"
    let Right root = parse def bs
    let unattend = fromJust $ child "unattend" root
    print $ show unattend
    E.evaluate bs
@ndmitchell ndmitchell added a commit to ndmitchell/stackage that referenced this issue Jan 18, 2017
@ndmitchell ndmitchell Remove pugixml
This library can segfault - see philopon/pugixml-hs#5. It probably shouldn't be in Stackage, with the implied safety, until that is fixed.
4fdf4c1
@ndmitchell ndmitchell referenced this issue in fpco/stackage Jan 18, 2017
Merged

Remove pugixml #2217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment