diff liboctave/ChangeLog @ 8193:5fd507839b76

remove the int->real conversion code vulnerability to compiler optimization
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 08 Oct 2008 08:01:46 +0200
parents 9cb73236e552
children 5ac184c05811
line wrap: on
line diff
--- a/liboctave/ChangeLog	Tue Oct 07 15:49:03 2008 +0200
+++ b/liboctave/ChangeLog	Wed Oct 08 08:01:46 2008 +0200
@@ -1,3 +1,10 @@
+2008-10-08  Jaroslav Hajek  <highegg@gmail.com>
+
+	* oct-inttypes.h (octave_base_int<T>::compute_threshold): Return
+	exclusive bounds rather than inclusive, be resistant to compiler
+	optimizations.
+	(octave_base_int<T>::convert_real): Use exclusive bounds.
+
 2008-10-07  Jaroslav Hajek <highegg@gmail.com>
 
 	* oct-inttypes.h (OCTAVE_INT_DOUBLE_BIN_OP): Change octave_int64 to