search for: mkverb

Displaying 1 result from an estimated 1 matches for "mkverb".

Did you mean: mkerb
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
...> PRESERVE_SV(yylval = mkString2(stext, bp - stext)); > if(stext != st0) free(stext); > > This seems to have been the only remaining while loop in gramLatex.y > that didn't check for R_EOF. > > More correctness work is needed: mkMarkup() should avoid calling > mkVerb(R_EOF) when running tools::parseLatex('\\verb'), since otherwise > 0xFF becomes a part of the resulting text. All declarations of unsigned > int nstext should probably be replaced by size_t nstext... but then > we'd have an annoying visit from the OOM killer instead of a much f...