projects
/
platform
/
core
/
api
/
location-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d02f9c5
)
checking argument for location_bounds_contains_coordinates_on_edge API
98/237398/1
submit/tizen/20200701.055008
submit/tizen/20200704.044508
submit/tizen/20200716.061924
author
chakradhar
<v.pogiri@samsung.com>
Tue, 30 Jun 2020 05:11:36 +0000
(10:41 +0530)
committer
chakradhar
<v.pogiri@samsung.com>
Tue, 30 Jun 2020 05:11:36 +0000
(10:41 +0530)
Change-Id: Ia812d95fb7ee0ea56552c267b0264d9b4c271ebe
src/location_bounds.c
patch
|
blob
|
history
diff --git
a/src/location_bounds.c
b/src/location_bounds.c
index
041231f
..
b4c0433
100644
(file)
--- a/
src/location_bounds.c
+++ b/
src/location_bounds.c
@@
-271,6
+271,11
@@
EXPORT_API bool location_bounds_contains_coordinates_on_edge(location_bounds_h b
return FALSE;
}
+ if (tolerance < 0.0) {
+ set_last_result(LOCATION_BOUNDS_ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
LocationPosition *pos = location_position_new(0, coords.latitude, coords.longitude, 0, LOCATION_STATUS_2D_FIX);
if (pos == NULL) {
//LCOV_EXCL_START