json/include/nlohmann/detail/input
Thomas Braun 61fe5f1eee input_buffer_adapter: Fix handling of nullptr input
Clang UBSAN currently complains that the char * to input_buffer_adapter
is a nullptr.

Turns out it is actually required to accept nullptr, see for example
line 415 in input_adapters.hpp

  ...
  // the address of first cannot be used: use nullptr
  ia = std::make_shared<input_buffer_adapter>(nullptr, len);
  ....

Therefore we have to handle it gracefully here. We now also ignore the
length parameter l if b is a nullptr.
2019-09-03 13:22:03 +02:00
..
binary_reader.hpp 🚨 fix linter warning 2019-07-21 14:04:49 +02:00
input_adapters.hpp input_buffer_adapter: Fix handling of nullptr input 2019-09-03 13:22:03 +02:00
json_sax.hpp 🚚 rename Hedley macros 2019-07-01 22:37:30 +02:00
lexer.hpp 🚨 fix warnings 2019-07-02 21:06:42 +02:00
parser.hpp 🚚 rename Hedley macros 2019-07-01 22:37:30 +02:00
position_t.hpp 🚨 fixed warnings 2019-03-15 14:55:13 +01:00