Closed PerMildner closed 8 years ago
Thanks for the report.
Is there any chance I can have access to your repository?
It is easy enough to make that code more robust, but I would also like to have a look at your repo & see what is really going on.
(If the repo is private, then nearly as good would be a copy of the metadata from the ",v" file. The debugger can tell you exactly what file is was processing: file->path and file->rcs_path will have that info.)
Cheers, Ralph.
On 27 Jun 2016, at 20:14, rcls notifications@github.com wrote:
Thanks for the report.
Is there any chance I can have access to your repository?
It is easy enough to make that code more robust, but I would also like to have a look at your repo & see what is really going on.
(If the repo is private, then nearly as good would be a copy of the metadata from the ",v" file. The debugger can tell you exactly what file is was processing: file->path and file->rcs_path will have that info.)
The repo is private, unfortunately. I have attached the offending “,v” file (not only its meta data).
I have a debug build of crap-clone in GDB so I can look at variables for you. I can also test changes.
Cheers, Ralph.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Per Mildner Per.Mildner@sics.se Swedish Institute of Computer Science (SICS Swedish ICT)
The email attachment seems to have been removed by github. Attaching here instead. crap-bug.tar.gz
Should be fixed now. Thanks for reporting this. Let me know if you have any more problems.
I can confirm that the fix seems to have solved the issue for our repository. Thanks!
The code does
which is a bad idea if
i->version
is non-empty but does not contain a '.'.In my case the following gdb session shows how
memcpy
is called with insane values becausei->version
contains the string"1"
.(Unfortunately I have no idea how crap or CVS works, so I do not know what a suitable fix would be here.)