1
0
Fork 0
forked from len0rd/rockbox

talk.h make voice files check for proper number of entries on load

In addition to version and target also check id1_max & id2_max
for proper length before allowing voice file to be loaded

Change-Id: I36016059d07781b0bb43dd9873bbb6e565298d76
This commit is contained in:
William Wilgus 2019-10-14 21:42:19 -05:00
parent 4382d3f5ed
commit c93666d08e
3 changed files with 10 additions and 2 deletions

View file

@ -134,7 +134,7 @@ int talk_time_intervals(long time, int unit_idx, bool enqueue);
/* This (otherwise invalid) ID signals the end of the array. */
#define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY
#define TALK_FINAL_ID_VOICEONLY LANG_LAST_VOICEONLY_INDEX_IN_ARRAY
/* Enqueue next utterance even if enqueue parameter is false: don't
interrupt the current utterance. */
void talk_force_enqueue_next(void);