Bug 242268

Summary: eb-4.2-36: array subscript is above array bounds
Product: [openSUSE] openSUSE 10.3 Reporter: David Binderman <dcb314>
Component: OtherAssignee: Mike Fabian <mfabian>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bugzilla-242268.patch

Description David Binderman 2007-02-05 17:46: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.
Comment 1 Mike Fabian 2007-02-06 11:41:52 UTC

*** This bug has been marked as a duplicate of bug 240922 ***
Comment 2 Mike Fabian 2007-02-06 15:02:08 UTC
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 

-------------------------------------------------------------------
Comment 3 Mike Fabian 2007-02-06 15:04:44 UTC
reported upstream.