Line numbers and function names don't match
See original GitHub issueDescription
Running mythril -xo json <filename>
produces a report in which sometimes the function names and the corresponding line numbers just don’t make sense.
I understand that this is information that’s sourced from the solidity binary, etc. But just wanted to make sure this is expected behavior.
Steps to reproduce
For instance, in https://etherscan.io/address/0x1c3bed5bd4b0e6a8389efd0d2876f948a907ab5b#code, for the contract MMR
, one of the errors Mythril reports is -
[0]
address : 573
code : "his.balance); return; } MiniMeToken toke"
debug : ""
description : "This contract executes a message call to to another contract. Make sure that the called contract is trusted and does not execute user-supplied code."
filename : "<filename>"
function : "fallback"
lineno : 507
title : "Message call to external contract"
type : "Informational"
Not sure which function fallback
refers to in the entire contract/ source file.
The line number 507
corresponds to the function claimToken
.
Can this mismatch please be explained.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Why doesn't GDB show line numbers or function names?
Show activity on this post. And use gdb segfaulttest to run it, when I use gdb's backtrace command I don't get any line...
Read more >How to identify the line number in a program as reported by ...
Lines in stack traces and in log files do not match up with source code. Logs can even indicate line numbers beyond the...
Read more >Line numbers are incorrect in exception stack trace : KT-8628
So basically I added dummyException: Exception = Exception() as a parameter with default value to the existing inline function. As name suggests dummyException ......
Read more >Friday Fun: PowerShell ISE Function Finder
The button shows the line number and function name. When a button is clicked, the function gets the line number and automatically jumps...
Read more >Excel MATCH Function Error Troubleshooting Examples
Before we start troubleshooting the MATCH function, here's a short video that shows how the function works. It has four MATCH examples, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shashank-srikant no bug bounty program yet, but we’re currently working with Gitcoin to set something up. We’ll keep you posted!
should be fixed by #949 , if the bug still persists, please feel free to reopen this.