Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializer::mirror_keyframe_map init_frame_index_last might cause crash #22

Open
kismeter opened this issue Feb 27, 2023 · 0 comments
Open

Comments

@kismeter
Copy link

Hi

`void Initializer::mirror_keyframe_map(Map *feature_tracking_map,
size_t init_frame_id) {
size_t init_frame_index_last =
feature_tracking_map->frame_index_by_id(init_frame_id);
size_t init_frame_index_gap = config->initializer_keyframe_gap();
size_t init_frame_index_distance =
init_frame_index_gap * (config->initializer_keyframe_num() - 1);

...
}`

in the Initializer.cpp, in some cases above code the value init_frame_index_last could be nil(), it's size_t(-1), the value is not handle, that could cause out of bound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant