[Libreoffice-commits] core.git: sal/rtl
Stephan Bergmann
sbergman at redhat.com
Fri Oct 31 06:12:24 PDT 2014
sal/rtl/alloc_arena.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1dd285d0c707399f83bbbd51bf8b14abbc72cc78
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Oct 31 14:11:54 2014 +0100
cid#1202755 Clarify with assert that new_size == 0 cannot happen
...so arena->m_hash_shfit will never be negative and never cause undefined shift by negative
value.
Change-Id: Ifc3d28d53bae38bc8deea72473c81f1d043dc18e
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx
index f28cdc1..1ed1497 100644
--- a/sal/rtl/alloc_arena.cxx
+++ b/sal/rtl/alloc_arena.cxx
@@ -268,6 +268,8 @@ rtl_arena_hash_rescale (
sal_Size new_size
)
{
+ assert(new_size != 0);
+
rtl_arena_segment_type ** new_table;
sal_Size new_bytes;
More information about the Libreoffice-commits
mailing list