Bugzilla – Bug 242268
eb-4.2-36: array subscript is above array bounds
Last modified: 2007-02-06 15:04:44 UTC
I just tried to compile package eb-4.2-36 with the GNU C compiler version 4.3 snapshot 20070202. The compiler said multiplex.c:836: warning: array subscript is above array bounds The source code is *(entry->book_name + EBNET_MAX_BOOK_NAME_LENGTH + 1) = '\0'; but char book_name[EBNET_MAX_BOOK_NAME_LENGTH + 1]; Suggest code rework.
*** This bug has been marked as a duplicate of bug 240922 ***
Created attachment 117647 [details] bugzilla-242268.patch ------------------------------------------------------------------- Tue Feb 06 15:50:24 CET 2007 - mfabian@suse.de - bugzilla #242268: array subscript is above array bounds. ------------------------------------------------------------------- Tue Feb 06 12:33:57 CET 2007 - mfabian@suse.de - update to 4.3. • fix a problem with shared directories with EPWING dictionaries • fix the problem that ‘ebunzip --test’ did overwrite the main dictionary file. • fix the problem that ebappendix created an appendix in electronic book form even when reading a catalogs.app file. • make colour illustrations with reference links work. • API Additions: new functions: eb_have_image_menu(), eb_image_menu(). new text hooks: EB_HOOK_BEGIN_IMAGE_PAGE, EB_HOOK_END_IMAGE_PAGE, EB_HOOK_BEGIN_CLICKABLE_AREA, EB_HOOK_END_CLICKABLE_AREA -------------------------------------------------------------------
reported upstream.