Bug #713

segfault if path to videolib includes "movies" or "tv"

Added by Hammel about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:14 Sep 2019
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:Database
Target version:PiBox - 2.0 - Harkonnen
Severity:01 - Critical

Description

An example:
/media/usb1/sda1/movies/videolib

This causes a segfault because the path /media/usb1/sda1/movies/ doesn't includes "videolib" before "movies". The workaround is to rename /media/usb1/sda1/movies/ to /media/usb1/sda1/videos (anything except "movies" or "tv").

The fix is to test that the string "videolib/movies" or "videolib/tv" ends the path. If not, skip that path.

Associated revisions

Revision 55eed861
Added by Hammel about 1 year ago

RM #713: Skip paths without "/videolib" in them. This can happen if the parent path includes "movies" or "tv". Fix build warning for missing prototype found in dbkiosk.h because it hadn't been added to videofe.h.

History

#1 Updated by Hammel about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Fixed. Tested on media system. Pushed.

Closing issue.

Also available in: Atom PDF