master moved from 0ad6a09cdabb to e848cf9ced9c
3 new revisions:
Revision: 3085408bf207
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 11:38:12 2014 UTC
Log: Check malloc() return value....
http://code.google.com/p/libfreefare/source/detail?r=3085408bf207
Revision: 510d8a4b85b1
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 12:13:28 2014 UTC
Log: Reindent after last commit.
http://code.google.com/p/libfreefare/source/detail?r=510d8a4b85b1
Revision: e848cf9ced9c
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 11:50:28 2014 UTC
Log: Ignore a few more files.
http://code.google.com/p/libfreefare/source/detail?r=e848cf9ced9c
==============================================================================
Revision: 3085408bf207
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 11:38:12 2014 UTC
Log: Check malloc() return value.
Fixes issue 25.
http://code.google.com/p/libfreefare/source/detail?r=3085408bf207
Modified:
/libfreefare/freefare.c
=======================================
--- /libfreefare/freefare.c Wed Dec 18 17:10:34 2013 UTC
+++ /libfreefare/freefare.c Sun Apr 6 11:38:12 2014 UTC
@@ -189,9 +189,11 @@
char *
freefare_get_tag_uid (MifareTag tag)
{
- char *res = malloc (2 * tag->info.szUidLen + 1);
+ char *res;
+ if ((res = malloc (2 * tag->info.szUidLen + 1))) {
for (size_t i =0; i < tag->info.szUidLen; i++)
snprintf (res + 2*i, 3, "%02x", tag->info.abtUid[i]);
+ }
return res;
}
==============================================================================
Revision: 510d8a4b85b1
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 12:13:28 2014 UTC
Log: Reindent after last commit.
http://code.google.com/p/libfreefare/source/detail?r=510d8a4b85b1
Modified:
/libfreefare/freefare.c
=======================================
--- /libfreefare/freefare.c Sun Apr 6 11:38:12 2014 UTC
+++ /libfreefare/freefare.c Sun Apr 6 12:13:28 2014 UTC
@@ -191,8 +191,8 @@
{
char *res;
if ((res = malloc (2 * tag->info.szUidLen + 1))) {
- for (size_t i =0; i < tag->info.szUidLen; i++)
- snprintf (res + 2*i, 3, "%02x", tag->info.abtUid[i]);
+ for (size_t i =0; i < tag->info.szUidLen; i++)
+ snprintf (res + 2*i, 3, "%02x", tag->info.abtUid[i]);
}
return res;
}
==============================================================================
Revision: e848cf9ced9c
Author: Romain Tartière <
rom...@blogreen.org>
Date: Sun Apr 6 11:50:28 2014 UTC
Log: Ignore a few more files.
http://code.google.com/p/libfreefare/source/detail?r=e848cf9ced9c
Modified:
/.gitignore
=======================================
--- /.gitignore Mon Jan 14 09:40:29 2013 UTC
+++ /.gitignore Sun Apr 6 11:50:28 2014 UTC
@@ -4,13 +4,14 @@
*.Plo
*.pc
*/.deps/
-*/.libs/
+**/.libs/
autom4te.cache/
Makefile
Makefile.in
INSTALL
aclocal.m4
ar-lib
+compile
config.*
configure
depcomp
@@ -19,6 +20,7 @@
ltmain.sh
missing
stamp-h1
+test-driver
examples/mifare-classic-format
examples/mifare-classic-read-ndef
examples/mifare-classic-write-ndef
@@ -32,3 +34,6 @@
examples/mifare-desfire-read-ndef
examples/mifare-desfire-write-ndef
examples/mifare-ultralight-info
+test/test-suite.log
+test/run-test.sh.log
+test/run-test.sh.trs