Commit b5323d1
Ajo Robert
Bug#25062396 - ASSERTION `CUR_SHAPE != GCALC_FUNCTION:: SHAPE_POINT' FAILED.
Invalid input parameters could lead to wrong result buffer.
Which can cause an assert due to traversing to uninitialized
pointers and abrupt exit or cyclic processing of the result
buffer.
Fix included handling of below scenarios.
1. Uninitialized structure elements.
2. Handling of NULL pointers.
3. Breakout from cyclic loops.
4. Wrong result object (Point with more than one coordinates).
Change-Id: I9badfa248889bc4e2f460b77d6a4be5dd72a962a1 parent 7577852 commit b5323d1
2 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
| |||
1173 | 1178 | | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | | - | |
1177 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1178 | 1187 | | |
1179 | 1188 | | |
1180 | 1189 | | |
| |||
1261 | 1270 | | |
1262 | 1271 | | |
1263 | 1272 | | |
| 1273 | + | |
1264 | 1274 | | |
1265 | 1275 | | |
1266 | 1276 | | |
1267 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1268 | 1288 | | |
1269 | 1289 | | |
1270 | 1290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| |||
0 commit comments