Skip to content

Commit

Permalink
Merge branch 'sverker/hipe-binmatch-heap-corrupt' into dev
Browse files Browse the repository at this point in the history
* sverker/hipe-binmatch-heap-corrupt:
  Fix hipe bug in convert_matchstate, bignum-padding one word too long

OTP-9182
  • Loading branch information
sverker committed Apr 1, 2011
2 parents 5d3c006 + b715c07 commit 745c4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hipe/rtl/hipe_tagscheme.erl
Expand Up @@ -1045,7 +1045,7 @@ convert_matchstate(Ms) ->
build_sub_binary(Ms, ByteSize, ByteOffset, BitSize, BitOffset,
hipe_rtl:mk_imm(0), Orig),
size_from_header(SizeInWords, Header),
hipe_rtl:mk_alu(Hole, SizeInWords, sub, hipe_rtl:mk_imm(?SUB_BIN_WORDSIZE-1)),
hipe_rtl:mk_alu(Hole, SizeInWords, sub, hipe_rtl:mk_imm(?SUB_BIN_WORDSIZE)),
mk_var_header(BigIntHeader, Hole, ?TAG_HEADER_POS_BIG),
hipe_rtl:mk_store(Ms, hipe_rtl:mk_imm(?SUB_BIN_WORDSIZE*WordSize-?TAG_PRIMARY_BOXED),
BigIntHeader)].
Expand Down

0 comments on commit 745c4af

Please sign in to comment.