We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5663f77 commit 3ed568fCopy full SHA for 3ed568f
1 file changed
include/osmium/io/detail/pbf_decoder.hpp
@@ -165,7 +165,8 @@ namespace osmium {
165
while (pbf_string_table.next(OSMFormat::StringTable::repeated_bytes_s, protozero::pbf_wire_type::length_delimited)) {
166
const auto str_view = pbf_string_table.get_view();
167
if (str_view.size() > osmium::max_osm_string_length) {
168
- throw osmium::pbf_error{"overlong string in string table"};
+ const std::string start_of_string(str_view.data(), 20);
169
+ throw osmium::pbf_error{"overlong string (" + start_of_string + "...) in string table"};
170
}
171
m_stringtable.emplace_back(str_view.data(), osmium::string_size_type(str_view.size()));
172
0 commit comments