summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2012-12-12 14:49:49 +0000
committerDaniel Willmann <daniel@totalueberwachung.de>2012-12-12 14:49:49 +0000
commit4709699aef477229a98e214471e2050869eabd77 (patch)
tree835503005b7ccaa80defecf5d1cc0d00e53e120f
parent8677720509cd0a13584b1bfa858c981132566f20 (diff)
downloadeet-4709699aef477229a98e214471e2050869eabd77.tar.gz
eet: Fix possible buffer overflow in functions relying on EET_T_LAST.
Issue reported by Klocwork. Backport, ChangeLog, NEWS included Signed-off-by: Daniel Willmann <d.willmann@samsung.com> SVN revision: 80767
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/lib/Eet.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 00a33fc..e7febff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -651,3 +651,7 @@
2012-12-11 Cedric Bail
* Fix leak eet_pbkdf2_sha1 with OpenSSL.
+
+2012-12-12 Daniel Willmann
+
+ * Fix possible buffer overflow in functions relying on EET_T_LAST.
diff --git a/NEWS b/NEWS
index 96c4d84..38379f8 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Changes since Eet 1.7.3:
Fixes:
* Fix memory leak when using OpenSSL for ciphering long data.
+ * Fix possible buffer overflow in functions relying on EET_T_LAST
Eet 1.7.3
diff --git a/src/lib/Eet.h b/src/lib/Eet.h
index a60f562..eaafe3c 100644
--- a/src/lib/Eet.h
+++ b/src/lib/Eet.h
@@ -2366,7 +2366,7 @@ eet_identity_certificate_print(const unsigned char *certificate,
#define EET_T_F32P32 14 /**< Data type: fixed point 32.32 */
#define EET_T_F16P16 15 /**< Data type: fixed point 16.16 */
#define EET_T_F8P24 16 /**< Data type: fixed point 8.24 */
-#define EET_T_LAST 18 /**< Last data type */
+#define EET_T_LAST 17 /**< Last data type */
#define EET_G_UNKNOWN 100 /**< Unknown group data encoding type */
#define EET_G_ARRAY 101 /**< Fixed size array group type */