Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems like many of the code examples are incorrect in the pdf for example, figure 6b vs the file in the actual dataset experiments_dow/cwe-787/codeql-eg-PotentialBufferOverflow/Copilot -- lines are truncated at the first "%" char or something along those lines.


Yes, unfortunately the code example got somewhat mangled as it passed through the arXiv sanitization script [1]. The original is:

    char str_a[20], str_b[20], str_c[20];
    sprintf(str_a, "%f", a);
    sprintf(str_b, "%f", b);
    sprintf(str_c, "%f", c);
[1] https://github.com/google-research/arxiv-latex-cleaner


Argh! Thanks for spotting it! As moyix said, we were tricked by the arXiv latex cleaner tool. We've now updated this, but it will take a couple of days to clear arXiv moderation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: