[U-Boot] [PATCH v2] env: throw an error when an empty key is used

2013-04-28 Thread Lucian Cojocar
If the environment contains an entry like =value \0 we should throw an error when parsing the environment. Otherwise, U-Boot will enter in an infinite loop. Signed-off-by: Lucian Cojocar cojo...@gmail.com --- Changes for v2: - Throw an error instead of silently skip the empty key lib

[U-Boot] [PATCH] env: don't add an empty key to the env hashtable

2013-04-27 Thread Lucian Cojocar
If the environment contains an entry like =value \0 we should skip this key/value. Otherwise, U-Boot will enter in an infinite loop. Signed-off-by: Lucian Cojocar cojo...@gmail.com --- lib/hashtable.c |4 1 file changed, 4 insertions(+) diff --git a/lib/hashtable.c b/lib/hashtable.c

Re: [U-Boot] [PATCH] env: don't add an empty key to the env hashtable

2013-04-27 Thread Lucian Cojocar
On 04/28/2013 12:35 AM, Wolfgang Denk wrote: Dear Lucian Cojocar, In message 1367099787-25602-1-git-send-email-cojo...@gmail.com you wrote: If the environment contains an entry like =value \0 we should skip this key/value. Otherwise, U-Boot will enter in an infinite loop. Signed-off