Bug 154057 - [patch] graphics/libgphoto2: Fix segfault
Summary: [patch] graphics/libgphoto2: Fix segfault
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-16 14:40 UTC by Lucius Windschuh
Modified: 2011-01-16 21:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.87 KB, patch)
2011-01-16 14:40 UTC, Lucius Windschuh
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lucius Windschuh 2011-01-16 14:40:11 UTC
libgphoto2 segfaults with some USB devices, at leat on 9-CURRENT, because it missed a check on libusb's returned structures. This problem is fixed in the libgphoto2 SVN (r12693), but not in the current release.
So please put the attached patch in files/ so that libghoto2 becomes more robust.

Fix: Put the attached patch into files/

Patch attached with submission follows:
How-To-Repeat: gphoto2 -l -> Segfault (at least with my USB devices)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-16 14:40:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2011-01-16 21:35:51 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2011-01-16 21:39:44 UTC
pav         2011-01-16 21:39:38 UTC

  FreeBSD ports repository

  Modified files:
    graphics/libgphoto2  Makefile 
  Added files:
    graphics/libgphoto2/files patch-libgphoto2_port-usb-libusb.c 
  Log:
  - Fix segfault on certain usb devices
  
  PR:             ports/154057
  Submitted by:   Lucius Windschuh <lwindschuh@gmail.com>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.59      +1 -0      ports/graphics/libgphoto2/Makefile
  1.1       +45 -0     ports/graphics/libgphoto2/files/patch-libgphoto2_port-usb-libusb.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"