model-checking / cbmc-viewer

CBMC Viewer scans the output of CBMC and produces a browsable summary of its findings, making it easy to root cause the issues it finds.
https://model-checking.github.io/cbmc-viewer/
Apache License 2.0
32 stars 11 forks source link

Read symbol table with latin1 character encoding. #25

Closed markrtuttle closed 3 years ago

markrtuttle commented 3 years ago

Code with definitions like

  static const char *UTF_16_BE_BOM = "\xFE\xFF";

will produce values in the symbol table that cannot read as strings of UTF-8 characters. We read the symbol table using the latin1 encoding in place of the Python default UTF-8 encoding, since latin1 agrees with UTF-8 on the ASCII characters.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.