projects
/
platform
/
core
/
system
/
upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
005e3e5
)
Remove always false condition
91/310691/1
accepted/tizen/unified/20240508.124547
accepted/tizen/unified/20240508.150734
accepted/tizen/unified/20240509.124613
accepted/tizen/unified/toolchain/20240513.061321
accepted/tizen/unified/x/20240509.044727
author
Youngjae Cho
<y0.cho@samsung.com>
Tue, 7 May 2024 00:32:04 +0000
(09:32 +0900)
committer
Youngjae Cho
<y0.cho@samsung.com>
Tue, 7 May 2024 00:32:49 +0000
(09:32 +0900)
(size_t)dest_size > SIZE_MAX is always false.
Change-Id: Iaefc4b21be4a42b0881f2245b525dc30df7d02c1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/upgrade-apply/main.c
patch
|
blob
|
history
diff --git
a/src/upgrade-apply/main.c
b/src/upgrade-apply/main.c
index a74dec2d94731d264f8110b5ca1322815bfee723..d8fbe9bc34cd1a1b6f482ac8eb8f1e122d15346e 100644
(file)
--- a/
src/upgrade-apply/main.c
+++ b/
src/upgrade-apply/main.c
@@
-148,7
+148,7
@@
struct parse_result parse_args(int argc, char **argv)
if (dest_size != 0)
return (struct parse_result) { .result = PARSE_REPEATED_ARGUMENT };
dest_size = atoi(optarg);
- if (dest_size <= 0
|| (size_t)dest_size > SIZE_MAX
)
+ if (dest_size <= 0)
return (struct parse_result) { .result = PARSE_BAD_SIZE };
break;