[libcxx-commits] [PATCH] D57761: [libc++] Avoid UB in the no-exceptions mode in a few places

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 11 13:07:12 PST 2019


ldionne updated this revision to Diff 186318.
ldionne added a comment.

Added tests for the abort() behavior and fixed UB I had missed in map::at().


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57761/new/

https://reviews.llvm.org/D57761

Files:
  libcxx/include/ios
  libcxx/include/map
  libcxx/include/unordered_map
  libcxx/src/hash.cpp
  libcxx/src/ios.cpp
  libcxx/src/locale.cpp
  libcxx/test/libcxx/containers/associative/map/at.abort.pass.cpp
  libcxx/test/libcxx/containers/associative/map/at.const.abort.pass.cpp
  libcxx/test/libcxx/containers/unord/unord.map/at.abort.pass.cpp
  libcxx/test/libcxx/containers/unord/unord.map/at.const.abort.pass.cpp
  libcxx/test/libcxx/input.output/iostreams.base/ios/iostate.flags/clear.abort.pass.cpp
  libcxx/test/libcxx/localization/locales/locale.abort.pass.cpp
  libcxx/test/libcxx/localization/locales/locale.category.abort.pass.cpp
  libcxx/test/libcxx/localization/locales/use_facet.abort.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57761.186318.patch
Type: text/x-patch
Size: 15805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190211/85d7692c/attachment-0001.bin>


More information about the libcxx-commits mailing list