[vlc-commits] [Git][videolan/vlc][master] qt: fix invalid iterator dereference in NavigationModel
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Sep 12 19:47:46 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
0a544554 by Dhananjay Jha at 2026-09-12T19:34:15+00:00
qt: fix invalid iterator dereference in NavigationModel
- - - - -
1 changed file:
- modules/gui/qt/maininterface/navigationmodel.cpp
Changes:
=====================================
modules/gui/qt/maininterface/navigationmodel.cpp
=====================================
@@ -242,14 +242,14 @@ struct ModelEntry
PathIterator it, const PathIterator& end,
OutIterator out) const
{
- size_t index = *it;
if (it == end) {
*out = urinode;
return;
- } else {
- *out = urinode;
- children[index].getUri(++it, end, ++out);
}
+
+ size_t index = *it;
+ *out = urinode;
+ children[index].getUri(++it, end, ++out);
}
};
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0a544554996ae900813ba92c70cd8c9408062497
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0a544554996ae900813ba92c70cd8c9408062497
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list