diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-31 14:11:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-31 14:11:54 +0100 |
commit | 1dd285d0c707399f83bbbd51bf8b14abbc72cc78 (patch) | |
tree | 61bc7da871cd988e192d8ce4abefbf1ba6df23be /sal/rtl | |
parent | bfd4f64bbbdffd50817ad580be0e1e45f7623bb8 (diff) |
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
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/alloc_arena.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index f28cdc140d49..1ed149752e17 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; |