[Issue 9466] Line number dependent bug of coverage
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 6 18:40:53 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9466
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-06 18:40:50 PST ---
It crashes in Module::genobjfile, in this call:
free(covb);
covb is allocated via:
covb = (unsigned *)calloc((numlines + 32) / 32, sizeof(*covb));
I would sure like to understand the meaning of this magical expression. Why is
it dividing by 32? Another case of premature optimization?
If you replace that with:
covb = (unsigned *)calloc(numlines, sizeof(*covb));
Then it works fine.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list