<div dir="ltr">Hello,<br><br>I mistakenly set the size specifier in a binary match to zero and it caused beam_asm to crash.<br>This is Erlang/OTP R12B-4.<br><br>Test case:<br><br>test3() -><br>    <<Len:16/little, Str:Len/binary, 0:0>> = <<2, 0, $h, $i, 0>>.<br>
<br>Result:<br><br>crash reason: {function_clause,[{beam_dict,old_string,[[],[]]},<br>                                {beam_dict,string,2},<br>                                {beam_asm,encode_arg,2},<br>                                {beam_asm,encode_op_1,3},<br>
                                {beam_asm,assemble_function,3},<br>                                {beam_asm,assemble_1,4},<br>                                {beam_asm,assemble,4},<br>                                {beam_asm,module,4}]}<br>
<br>Thanks,<br>Will<br></div>