Closed area closed 5 years ago
Hi area,
Are you currently running the latest version ( v1.5.5 ). If not can you update and let me know if you still get this issue.
It does appear we are running an older version. Closing for now assuming that was the issue.
Reopening - we are seeing the same error on 1.5.5, though I am unable to find a minimum working example now, unfortunately. I've done a little investigation / logging which will hopefully point you in the right direction though.
EDIT: Sorry for the double post - my VPN dropped just as I clicked 'Submit'
Hi area, Thanks for checking on this version, and for looking into it in more detail. This is very similar to an issue that has been fixed already in the next major release. 1.6.0 should fix this issue and should be released within the week.
Sorry for any inconvenience
Great, I'll hang tight until that release then.
@area do you have these contracts public that I can test with?
Yes, they can be found at https://github.com/JoinColony/colonyNetwork/. To reproduce, after cloning the repository:
git checkout bug/security-analysis
yarn
git submodule update --remote --init
truffle run verify --mode quick --style json --limit 1 --swc-blacklist 128
(I don't think many of those flags are required to see the error, but including for completeness)
Sorry for the delay. Can you try this with 1.6.0 and reopen if it's not resolved.
Consistently seeing this error running against our codebase (see e.g. https://circleci.com/gh/JoinColony/colonyNetwork/9694) with a specific file (the library DSMath). A UUID of a run that shows this is
a7f3f1c8-57f0-4026-8869-54e9618d9eab
The error is thrown in
remapMythXOutput
. ThemythObject
that is passed in is:The error occurs because of how
mapped
is set up here - one such object for each string inmythObject.sourceList
. Here, that's one. However, when the errors are tried to be added here, it is attempting to do so at index 10 (because of the sourcemap location being696:24:10
. I note that the sourceList in the individual issues is populated correctly with 11 files for each issue, so my guess is something is amiss in in themythObject.sourceList
.