Skip to content

Commit

Permalink
Increase timezone index to 16bit (#74)
Browse files Browse the repository at this point in the history
This fixes a heap overflow when loading the current Transitous dataset.
  • Loading branch information
vkrause authored Mar 3, 2024
1 parent e8b976e commit 7e0f8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nigiri/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ using trip_id_idx_t = cista::strong<std::uint32_t, struct _trip_id_str_idx>;
using transport_idx_t = cista::strong<std::uint32_t, struct _transport_idx>;
using source_idx_t = cista::strong<std::uint8_t, struct _source_idx>;
using day_idx_t = cista::strong<std::uint16_t, struct _day_idx>;
using timezone_idx_t = cista::strong<std::uint8_t, struct _timezone_idx>;
using timezone_idx_t = cista::strong<std::uint16_t, struct _timezone_idx>;
using merged_trips_idx_t =
cista::strong<std::uint32_t, struct _merged_trips_idx>;
using footpath_idx_t = cista::strong<std::uint32_t, struct _footpath_idx>;
Expand Down

0 comments on commit 7e0f8fd

Please sign in to comment.