[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libusb-devel
Subject:    [libusb] [PATCH] Fix for libusb_init segfault with ENABLE_DEBUG_LOGGING
From:       John Sheu <sheu () google ! com>
Date:       2014-05-24 0:18:13
Message-ID: 1400890694-25534-1-git-send-email-sheu () google ! com
[Download RAW message or body]

This crash fixes an unconditional crash in libusb_init when
ENABLE_DEBUG_LOGGING is used.  Some form of this particular bug seems to have
been reported on the mailing list in 2010, so we might as well get around to
fixing it.

A concern:
* Since commit 139648d5, the default context is not created unless explicitly
  requested with a NULL **context parameter to libusb_init().  This does mean
  that running libusb with ENABLE_DEBUG_LOGGING now requires that a default
  context be explicitly created, first-thing.  This is different behavior from
  the non-ENABLE_DEBUG_LOGGING case, and I think this is suboptimal.

John Sheu (1):
  Fix libusb_init for ENABLE_DEBUG_LOGGING

 libusb/core.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

-- 
1.9.1.423.g4596e3a


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
libusb-devel mailing list
libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic