bug: open(FaFile(file)) segfaults with a 'memory not mapped' if file happens to be a directory
0
0
Entering edit mode
@philip-lijnzaad-2499
Last seen 21 months ago
European Union

I think that the Rsamtools::FaFile function should check whether it got a proper file to read. If it unwittingly is given a directory name, nothing happens, but the whole R session crashes when you subsequently pass the object to an open() call . To reproduce, simply try this:

library(Rsamtools)

open(FaFile("."))

This is the latest Rsamtools, v. 1.22.0

Philip

software error • 786 views
ADD COMMENT

Login before adding your answer.

Traffic: 569 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6