-
-
Notifications
You must be signed in to change notification settings - Fork 382
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedPlease help with this issue!Please help with this issue!source:VTK
Description
Describe the bug
vtkTGAReader has a "CanReadFile" method to determine if a stream is a potential TGA file, but any random file can a false positive
To Reproduce
Steps to reproduce the behavior:
- Download this file autzen.zip
- Open the file using
cat autzen.pts | f3d - --no-config --no-render --verbose - TGA reader is used, it should not even considered the file readable
Expected behavior
PTS reader being used, because TGA should reject the file
System Information:
- OS: Any (but linux for piping)
- GPU and GPU driver: Any
F3D Information
Paste the content of f3d --version or f3d-console.exe --version on Windows: master
Additional context
http://www.paulbourke.net/dataformats/tga/
A mentionned by @Meakk , it should be possible to check bitsperpixel. Should be 24 if we support RGB only, or at least a multiple of 8.
Fix must be in VTK.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedPlease help with this issue!Please help with this issue!source:VTK