diff options
author | jaehoon.you <jaehoon.you@samsung.com> | 2013-01-09 15:54:42 +0900 |
---|---|---|
committer | jaehoon.you <jaehoon.you@samsung.com> | 2013-01-24 14:37:52 +0900 |
commit | 6ea6a360fa75766b6e56545486e685ccd552ebab (patch) | |
tree | 50e7c75fd6357e1e9948c7bc9a3056e3e5c94246 | |
parent | 3d43fd27548f7ba6fb65b6fa448659855e09ac7e (diff) | |
download | lthor-6ea6a360fa75766b6e56545486e685ccd552ebab.tar.gz lthor-6ea6a360fa75766b6e56545486e685ccd552ebab.tar.bz2 lthor-6ea6a360fa75766b6e56545486e685ccd552ebab.zip |
[Prevent] fix Tizen 35853, and update authors list
Tizen 35853 : DEADCODE
original code is "assert(chunksize > 0 && chunksize <= trans_unit_size);"
(reference send_chunks() : line 125)
but chunksize already checked before line:1086 (chunksize <= 0)
then, chunksize always bigger than 0 .
so, exclamation mark is moved to another location
and conditional sentence is switched.
Change-Id: I9e5a2f998fb506fd152da856f4c9455f027207a6
Signed-off-by: jaehoon.you <jaehoon.you@samsung.com>
-rwxr-xr-x | lthor.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1100,7 +1100,7 @@ int test_tar_entry(struct data_src *tardata) return -1; } - if ((!chunksize > 0 && chunksize <= trans_unit_size)) { + if (!(chunksize <= trans_unit_size && chunksize > 0)) { free(chunk); return -1; } @@ -1190,7 +1190,8 @@ int main(int argc, char **argv) printf("\n"); printf("Linux Thor downloader, version %s \n", PACKAGE_VERSION); - printf("Authors: YoungJin Lee <yj0701.lee@samsung.com>\n\n"); + printf("Authors: YoungJin Lee <yj0701.lee@samsung.com>, " + "Jaehoon You <jaehoon.you@samsung.com>\n\n"); while (opt < argc) { /* check if we're verbose */ |