[PATCH] D67670: [clang-format][PR41964] Fix crash with SIGFPE when TabWidth is set to 0 and line starts with tab
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 17 13:52:59 PDT 2019
MyDeveloperDay updated this revision to Diff 220571.
MyDeveloperDay added a comment.
I should have known it was more involved.
v % 0 and v / 0 are both undefined behavior
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67670/new/
https://reviews.llvm.org/D67670
Files:
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Format/WhitespaceManager.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67670.220571.patch
Type: text/x-patch
Size: 33403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190917/ba21d226/attachment-0001.bin>
More information about the cfe-commits
mailing list