#7 Yamdi 1.4 segfaults on empty files under *nix

closed
nobody
None
5
2012-07-19
2008-12-04
No

Yamdi fails to mmap an empty file but returned value is not null, it is -1.
So "if(strncmp(flv, "FLV", 3)) {..." causes a segfault.

A patch is attached.

Discussion

  • Laurent MONIN

    Laurent MONIN - 2008-12-04

    Patch that fixes the issue for me.

     
  • Ingo Oppermann

    Ingo Oppermann - 2010-04-03

    Fixed in 1.5

     


Anonymous

Cancel  Add attachments