- 02 May, 2014 1 commit
-
-
Mark Salyzyn authored
- Deal with some -Wunused / -Wunused-variable issues Change-Id: I28c23fb213382a392ec30935749fb359e072d664
-
- 03 Apr, 2014 1 commit
-
-
Jens Gulin authored
A normal sequence of calls is as follows: str_parms_create_str, str_parms_add_str, str_parms_destroy. In some cases the destroy caused double free. str_parms_add_str will clone the input and send it to hashmapPut for storage. If hashmapPut did not store the strings it will raise errno = ENOMEM and leave caller with ownership of the strings. In any of these cases it will be safe to destroy the str_parms. But what if it wasn't hashmapPut that said NOMEM? What if there was a stale NOMEM already before a successful hashmapPut? In that case the strings will be successfully added to the list (if new), but when str_parms_add_str sees the NOMEM it will free them anyway, leaving dangling pointers in the str_parms!! It is the responsibility of the caller to clear errno before any interesting call. This patch makes sure that str_parms_add_str reacts only on errno emmitted from hashmapPut. Change-Id: If87e4bcc482f09e1c66133d33517b152ebdac65f
-
- 25 Mar, 2014 1 commit
-
-
Paul McLean authored
Change-Id: I1af5c260a1a820b65f0850ea9adb38b01fcb183c
-
- 27 Jan, 2014 2 commits
-
-
Mark Salyzyn authored
str_parms_get_float did not return the output into *val. Only output if returning with no error. Audit shows no internal users of this library function (cherry picked from commit 8e71ddea) Change-Id: I14a3f08a098072a159dd93f85ead36b3f445816f
-
Mark Salyzyn authored
(cherry picked from commit ba02cd1e) Change-Id: Ie427d481298af8d911bb2b157ebba30954335354
-
- 05 Dec, 2013 2 commits
-
-
Mark Salyzyn authored
str_parms_get_float did not return the output into *val. Only output if returning with no error. Audit shows no internal users of this library function Change-Id: I14a3f08a098072a159dd93f85ead36b3f445816f
-
Mark Salyzyn authored
Change-Id: Ie427d481298af8d911bb2b157ebba30954335354
-
- 15 Mar, 2012 2 commits
-
-
Dima Zavin authored
When removing one entry, we can't just remove it from the map since key will not be freed. So, instead, search through the map for the key and free it once it is found. Change-Id: Id745c166a4acc5ea25f6d6cdbfe4f8fbc21cbbb3 Reported-by:
Xin Qian <xqian@marvell.com> Signed-off-by:
Dima Zavin <dima@android.com>
-
Dima Zavin authored
Change-Id: I9f31da62f10f78ed11693a7c04e2be29b0790c93 Reported-by:
Xin Qian <xqian@marvell.com> Signed-off-by:
Dima Zavin <dima@android.com>
-
- 12 Mar, 2012 2 commits
-
-
Dima Zavin authored
Change-Id: I93f0e577aff6b8ff23a44e29f9942a26545b6dc8 Signed-off-by:
Dima Zavin <dima@android.com>
-
Dima Zavin authored
Change-Id: Iabdd2061cbc36c6f4d4eb6e46bd757b5b52e0027 Signed-off-by:
Dima Zavin <dima@android.com>
-
- 17 Jan, 2012 2 commits
-
-
Steve Block authored
Change-Id: I929ea38bc6fe6efeefa7870c8e7e4c19cd0029b3
-
Steve Block authored
Change-Id: Ia9a357dec5ad12eea93fd03401a3b02b38e4e94f
-
- 04 Jan, 2012 1 commit
-
-
Steve Block authored
Bug: 5449033 Change-Id: I4951baa981f09a84ce483e3d1bd0f9ebe009035f
-
- 26 Oct, 2011 1 commit
-
-
Steve Block authored
Bug: 5449033 Change-Id: Ib453f869977a6e909095a578bbf0420851f887d2
-
- 18 Jun, 2011 1 commit
-
-
Jean-Baptiste Queru authored
Change-Id: If5938ecd1dfd7f35e326573d10788bacaf3e2383
-
- 21 Apr, 2011 1 commit
-
-
Dima Zavin authored
Change-Id: Ifabeb75550fa6e351434e6e6d036b19331daf6c1 Signed-off-by:
Dima Zavin <dima@android.com>
-