Skip to content

Commit 61c79a7

Browse files
author
Ajo Robert
committed
Bug#27230859 UNEXPECTED BEHAVIOUR WHILE HANDLING INVALID
POLYGON Invalid input polygon can lead to undefined server behaviour. Fix: Handled the scenario by returning a NULL result. Change-Id: Icd945f3e8bb493100480605b464f32ef374817e7
1 parent 50af8a0 commit 61c79a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/gcalc_tools.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -733,7 +733,8 @@ int Gcalc_operation_reducer::end_couple(active_thread *t0, active_thread *t1,
733733
{
734734
DBUG_ENTER("Gcalc_operation_reducer::end_couple");
735735
res_point *rp0, *rp1;
736-
DBUG_ASSERT(t1->result_range);
736+
if (!t1->result_range)
737+
DBUG_RETURN(1);
737738
if (!(rp0= add_res_point(p)) || !(rp1= add_res_point(p)))
738739
DBUG_RETURN(1);
739740
rp0->down= t0->rp;

0 commit comments

Comments
 (0)