marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

missing tests on malloc() #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A large part of malloc() calls are not tested upon return to check if malloc 
succeeded.

* nfc.c str_nfc_target()

* acr122s.c acr122s_scan()

* acr122_pcsc.c acr122_pcsc_open() x2

* acr122_usb.c acr122_usb_connstring_decode() x3 acr122_usb_open()

* pn532_uart.c pn532_uart_scan() pn532_uart_open()

* arygon.c arygon_scan() arygon_open()

* pn53x_usb.c pn53x_usb_connstring_decode() x3 pn53x_usb_open()

* uart_win32.c uart_open() uart_list_ports() xN

* uart_posix.c uart_flush_input() uart_list_ports() xN

* pn53x.c pn53x_init() pn53x_initiator_transceive_bytes_timed() 
pn53x_get_information_about() pn53x_current_target_new() pn53x_data_new()

Original issue reported on code.google.com by yob...@gmail.com on 16 Feb 2013 at 9:50

GoogleCodeExporter commented 9 years ago
Libnfc code was fixed regarding malloc()/free() & similars in a few commits:
* 9dcf7378b6d0def9e02c9512afb80a4be8f52b43
* 3d9ebb5044a9fb77ad253a1e20758811013fce0d
* d7e7abb0619a03d63aa41e7fc385345258481cf3
* 07082792151eabbf4670d8e00c5ea149634b40a1
* a6c405a5d57c3f729e0bf8dbbb317aff217b9693
* 1f0b0e5b81e5895c6dcfda8a685293511b895a90
* 999631588da61b95f98e3355a733e1177078a3c1

Original comment by yob...@gmail.com on 3 Mar 2013 at 12:11

GoogleCodeExporter commented 9 years ago

Original comment by yob...@gmail.com on 3 Mar 2013 at 12:11