Summary: | media-video/noad crashes very badly when deleting the recording which is being cut | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthias Schwarzott <zzam> |
Component: | New packages | Assignee: | Gentoo VDR Project <vdr> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch to add better error-checking for preventing segfault |
Description
Matthias Schwarzott
![]() Steps to reproduce the error: 1. Record something, recording should contain multiple files 001.vdr 002.vdr ... 1a. either record something very long 1b. or reduce the max-filesize of recording-files 2. stop the recording/wait for its end. 3. when noad started, delete the recording 4. when noad tries to access the next file it will hang This is due to bad error-checking in noad. File cannot be opened => set filenr=-1, the read-command will not check this condition and noad will segfault. Attached patch will check this condition in read-code-path and kill noad sane (at least I hope so). Created attachment 97749 [details, diff]
patch to add better error-checking for preventing segfault
Added patch to ebuild. |