Opened 18 years ago
Closed 17 years ago
#4840 closed defect (fixed)
title_devs has only 9 entries. It will be overrun if for loop goes to i=8
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythtv | Version: | 0.21-fixes |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
In the function DVDReadBlocksPath a for loop goes through all 9 entries in the title_devs array. But it will index i+1, which will be 9 and out of range of the array if the for loop increments to i=8. Which it can do.
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | libs_libmythdvdnav_dvd_reader.c-prevent-overrun-of-title_devs.patch added |
|---|
comment:1 by , 18 years ago
| Milestone: | 0.21 → 0.22 |
|---|
Note:
See TracTickets
for help on using tickets.

breaks for loop if i=8 and we are about to index i+1