diff-match-patch-cpp-stl
diff-match-patch-cpp-stl copied to clipboard
C++ STL variant of https://code.google.com/p/google-diff-match-patch.
Running the algorythm under fuzzing tool has revealed the conversion issue from signed integer to bigger size unsigned integer. It causes heap-buffer-overflow and further crash: ``` static void diff_charsToLines(Diffs &diffs,...
Hi team, I am getting different results for same pair of texts comparison using match_main() for DMP python version and c++ stl in python. (diff_match_patch_cpp is diff_match_patch_python-1.0.2-py3.7-win-amd64.egg) >>import diff_match_patch_cpp as...
`std::isalnum`, `std::isspace`, and `std::isdigit` all have assertions when built with the debug C++ runtime that get violated when a value is not in the property range (0 - 255) but...
How do I get Line or Word Diffs to work in this library looking at the example on [Line or Word Diffs](https://github.com/google/diff-match-patch/wiki/Line-or-Word-Diffs) most of these function are private I tried...
when inserting a line with hash > 255. Then the conversion to char_t will have overflow issue since (char_t)256 == (char_t)0. ``` static string_t diff_linesToCharsMunge(const string_t &text, std::map &lineHash) {...