projects
/
platform
/
core
/
uifw
/
isf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7fc9f0
)
Fix infinite loop issue
12/223512/1
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Thu, 30 Jan 2020 10:08:18 +0000
(19:08 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Thu, 30 Jan 2020 10:30:52 +0000
(19:30 +0900)
Expression 'i >= 0' is always true , which may be caused by a logical error
Change-Id: I28abaf2723feba906ad4dbd02fb5cb4f6f82e27a
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/src/ltdl.cpp
patch
|
blob
|
history
diff --git
a/ism/src/ltdl.cpp
b/ism/src/ltdl.cpp
index
5aecd6c
..
f1dcc22
100644
(file)
--- a/
ism/src/ltdl.cpp
+++ b/
ism/src/ltdl.cpp
@@
-430,9
+430,9
@@
memmove (lt_ptr dest, const lt_ptr src, size_t size)
dest[i] = src[i];
}
else if (dest > src)
- for (i = size
-1; i >=
0; --i)
+ for (i = size
; i >
0; --i)
{
- dest[i
] = src[i
];
+ dest[i
-1] = src[i-1
];
}
return dest;