wasmc icon indicating copy to clipboard operation
wasmc copied to clipboard

Bug in module.c / skip_immediate

Open eco747 opened this issue 2 years ago • 1 comments

Hi, there is a small bug in skip_immediate function: a break is missing

case I32Const:
            // I32Const 指令的立即数表示 32 有符号整数(占 4 个字节)
            read_LEB_unsigned(bytes, pos, 32);
HERE>>>>>>>>
        case I64Const:
            // F32Const 指令的立即数表示 64 有符号整数(占 8 个字节)
            read_LEB_unsigned(bytes, pos, 64);
            break;

BTW: really good work - thanks for your incredible comments

eco747 avatar Nov 20 '23 15:11 eco747

This commit solves the problem. Thanks very much for your tip!

fix: 修复 break 关键字缺失问题

mcuking avatar Dec 07 '23 11:12 mcuking