Closed fumeboy closed 10 months ago
if the compiler disable inline, funcinfo may have an PCDATA[2] InlTreeIndex with empty data.
i found this by reviewing go source code, and the runtime haven’t encountered some error in my executions.
@fumeboy , it is a bug, if a PCData is empty data, pcdata offset needs zero. you haven't encountered some error because golang runtime checks funcdata before get pcdata.
compare 2 code snippet below:
and the diff is goloader have not handle the case of
datSize == 0
, i think the right solution should be this: