[libbluray-devel] [Git][videolan/libbluray][master] Fix possible OOB read with empty path
Petri Hintukainen
gitlab at videolan.org
Fri Apr 5 10:02:38 CEST 2019
Petri Hintukainen pushed to branch master at VideoLAN / libbluray
Commits:
12a75bc8 by hpi1 at 2019-04-05T07:56:52Z
Fix possible OOB read with empty path
- - - - -
1 changed file:
- src/libbluray/disc/disc.c
Changes:
=====================================
src/libbluray/disc/disc.c
=====================================
@@ -539,7 +539,7 @@ int disc_cache_bdrom_file(BD_DISC *p, const char *rel_path, const char *cache_pa
/* plain directory ? */
size = strlen(rel_path);
- if (rel_path[size - 1] == '/' || rel_path[size - 1] == '\\') {
+ if (size < 1 || rel_path[size - 1] == '/' || rel_path[size - 1] == '\\') {
return 0;
}
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/12a75bc83b0568780a04aca63b2391808f09232d
--
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/12a75bc83b0568780a04aca63b2391808f09232d
You're receiving this email because of your account on code.videolan.org.
More information about the libbluray-devel
mailing list