lib/libtuxtxt/tuxtxt_common.h fix out of bounds

Origin commit data
------------------
Branch: ni/coolstream
Commit: 20268781e3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-20 (Tue, 20 Dec 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2016-12-20 16:35:43 +01:00
parent f475e0e9ce
commit 98fb189edc

View File

@@ -309,7 +309,7 @@ void tuxtxt_decode_adip() /* additional information table */
#endif
} /* next adip page i */
while (!tuxtxt_cache.adippg[tuxtxt_cache.maxadippg] && (tuxtxt_cache.maxadippg >= 0)) /* and shrink table */
while ((tuxtxt_cache.maxadippg >= 0) && !tuxtxt_cache.adippg[tuxtxt_cache.maxadippg]) /* and shrink table */
tuxtxt_cache.maxadippg--;
}
/******************************************************************************