diff --git a/include/extractor/packed_osm_ids.hpp b/include/extractor/packed_osm_ids.hpp index 0f97d4b06..4a51cb1ff 100644 --- a/include/extractor/packed_osm_ids.hpp +++ b/include/extractor/packed_osm_ids.hpp @@ -11,7 +11,7 @@ namespace extractor namespace detail { template -using PackedOSMIDs = util::detail::PackedVector; +using PackedOSMIDs = util::detail::PackedVector; } using PackedOSMIDsView = detail::PackedOSMIDs; diff --git a/third_party/libosmium/include/osmium/io/detail/pbf_decoder.hpp b/third_party/libosmium/include/osmium/io/detail/pbf_decoder.hpp index b63893b63..a29ac1935 100644 --- a/third_party/libosmium/include/osmium/io/detail/pbf_decoder.hpp +++ b/third_party/libosmium/include/osmium/io/detail/pbf_decoder.hpp @@ -105,6 +105,8 @@ namespace osmium { while (pbf_string_table.next(OSMFormat::StringTable::repeated_bytes_s, protozero::pbf_wire_type::length_delimited)) { const auto str_view = pbf_string_table.get_view(); if (str_view.size() > osmium::max_osm_string_length) { + std::cout<< "### Overlong string error(max-size, overlong-string-size, overlong-string-content)" << str_view.size() << " " + << osmium::max_osm_string_length << " " << str_view.data() << std::endl; throw osmium::pbf_error{"overlong string in string table"}; } m_stringtable.emplace_back(str_view.data(), osmium::string_size_type(str_view.size())); diff --git a/third_party/libosmium/include/osmium/osm/types.hpp b/third_party/libosmium/include/osmium/osm/types.hpp index fbd1dcf02..6eda4cde2 100644 --- a/third_party/libosmium/include/osmium/osm/types.hpp +++ b/third_party/libosmium/include/osmium/osm/types.hpp @@ -66,7 +66,7 @@ namespace osmium { using changeset_comment_size_type = uint32_t; // maximum of 256 characters of max 4 bytes each (in UTF-8 encoding) - constexpr const int max_osm_string_length = 256 * 4; + constexpr const int max_osm_string_length = 256 * 128; } // namespace osmium