libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.17-23-gc2909fe

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 25 Jun 2010 17:38:21 +0200 (CEST)
The branch, master has been updated
       via  c2909feea20a33cd06875442141d7038e9be28f9 (commit)
      from  fcf62aa1a3df402448dce2454a4df4abd851d100 (commit)


- Log -----------------------------------------------------------------
commit c2909feea20a33cd06875442141d7038e9be28f9
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Fri Jun 25 17:38:18 2010 +0200

    Don't crash in ftdi_eeprom_free() if eeprom is unallocated/already freed

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index 4d10b73..2db8d32 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -2138,6 +2138,9 @@ void ftdi_eeprom_initdefaults(struct ftdi_eeprom *eeprom)
 */
 void ftdi_eeprom_free(struct ftdi_eeprom *eeprom)
 {
+    if (!eeprom)
+        return;
+
     if (eeprom->manufacturer != 0) {
         free(eeprom->manufacturer);
         eeprom->manufacturer = 0;


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.17-23-gc2909fe, libftdi-git <=