diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-01-14 10:05:14 +0100 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-01-14 10:05:14 +0100 |
commit | 8dfab82ee0cfe9ba731e1ff9096ebeca26d6591c (patch) | |
tree | a6039675e5fcc73cb3cde80664b6c2e4f1f83294 /strings/decimal.c | |
parent | cfa9a4bde6f519ed08b5791ba5f92c3f6da17c54 (diff) | |
download | mariadb-git-8dfab82ee0cfe9ba731e1ff9096ebeca26d6591c.tar.gz |
Bug #59241 invalid memory read in do_div_mod with doubly assigned variables
Fix: copy my_decimal by value, to avoid dangling pointers.
Diffstat (limited to 'strings/decimal.c')
-rw-r--r-- | strings/decimal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/strings/decimal.c b/strings/decimal.c index 7625ed80ec3..e081c063033 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 MySQL AB +/* 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 @@ -13,8 +13,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#line 18 "decimal.c" - /* ======================================================================= NOTE: this library implements SQL standard "exact numeric" type |