[Bug][move-binary-format] failure serializing signature for a program with a lot of locals #12596
Labels
bug
Something isn't working
compiler-v2
stale-exempt
Prevents issues from being automatically marked and closed as stale
🐛 Bug
When I try the following transactional test code, I see a failure writing the file format. What's odd is that it's not happening due to having too many local variables, but in
serialize_signature_size()
(298 cannot exceed 255). The bytecode printed shows 298 local variables, but only 255 are actually used. Why would the signature size vary? How is the signature generated?Note that this failure is occurring with move-compiler (V1), but it may be useful for V2 to understand how this might happen.
A clear and concise description of what the bug is.
To report a security issue, please email security@aptoslabs.com.
To reproduce
Code snippet to reproduce
Stack trace/error message
Expected Behavior
A clear and concise description of what you expected to happen.
System information
Please complete the following information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: