projects
/
platform
/
core
/
appfw
/
tpk-backend.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10e740
)
Fix static analysis issue
61/305161/1
author
Ilho Kim
<ilho159.kim@samsung.com>
Mon, 29 Jan 2024 10:35:58 +0000
(19:35 +0900)
committer
Ilho Kim
<ilho159.kim@samsung.com>
Mon, 29 Jan 2024 10:35:58 +0000
(19:35 +0900)
Avoid sign extension
Change-Id: I915b9e6f508f4f459b8a9c1fd1e53b2b4ed48093
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/lib/tpk_archive_info.cc
patch
|
blob
|
history
diff --git
a/src/lib/tpk_archive_info.cc
b/src/lib/tpk_archive_info.cc
index 8b613d4e4e4a1ac079903673dc646bc0ed5093c2..73a288b3164f5dc4d68f21580975aac4c761d9f6 100644
(file)
--- a/
src/lib/tpk_archive_info.cc
+++ b/
src/lib/tpk_archive_info.cc
@@
-225,7
+225,7
@@
bool TpkArchiveInfo::ReadIcon(const bf::path& icon, const bf::path& tmp_dir) {
icon_buf_.resize(len / sizeof(unsigned char));
ifs.read(reinterpret_cast<char*>(icon_buf_.data()), len);
- if (
len
!= icon_buf_.size()) {
+ if (
static_cast<size_t>(len)
!= icon_buf_.size()) {
LOG(ERROR) << "Reading icon failed, icon size is: " << len
<< ", but read size is: " << icon_buf_.size();
return false;