mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Bug #59241 invalid memory read in do_div_mod with doubly assigned variables
Fix: copy my_decimal by value, to avoid dangling pointers.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -2086,7 +2086,6 @@ void Item_func_interval::fix_length_and_dec()
|
||||
if (dec != &range->dec)
|
||||
{
|
||||
range->dec= *dec;
|
||||
range->dec.fix_buffer_pointer();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user