Xteink-X4-crosspoint-reader/lib/Epub
IFAKA 3e28724b62
Add bounds checking for TOC/spine array access (#64)
## Problem
`getSpineIndexForTocIndex()` and `getTocIndexForSpineIndex()` access
`toc[tocIndex]` and `spine[spineIndex]` without validating indices are
within bounds. Malformed EPUBs or edge cases could trigger out-of-bounds
access.

## Fix
Added bounds validation at the start of both functions before accessing
the arrays.

## Testing
- Builds successfully with `pio run`
- Affects: `lib/Epub/Epub.cpp`
2025-12-19 23:23:23 +11:00
..
Epub Bugfix/word spacing indented (#59) 2025-12-19 08:45:20 +11:00
Epub.cpp Add bounds checking for TOC/spine array access (#64) 2025-12-19 23:23:23 +11:00
Epub.h Caching of spine item sizes for faster book loading (saves 1-4 seconds). (#54) 2025-12-18 22:49:14 +11:00