lib/libtuxtxt/tuxtxt_common.h fix out of bounds

Origin commit data
------------------
Commit: 20268781e3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-20 (Tue, 20 Dec 2016)
This commit is contained in:
Jacek Jendrzej
2016-12-20 16:35:43 +01:00
parent 66a2c95b0d
commit ef62628418

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--;
}
/******************************************************************************