Opened 13 months ago

#374 new defect

qedx (qx) does not handle input lines longer than 607 characters

Reported by: trnsz@… Owned by: Eric Swenson
Priority: minor Milestone: MR12.9
Component: General Version: MR12.8
Keywords: Cc: Eric Swenson

Description

Attempting to use input lines longer than 607 characters crashes qedx. (For comparison, when ted has a problem with lines - and the maximum is somewhat longer as well - it just gives a warning and does not crash.)

Example of the problem (using a 608 character string):

qedx
a
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghij

Error:  out_of_bounds at edx_util_$read_ptr|1105
(>system_library_1>bound_qedx_)
referencing 12234|6542
There was an attempt to use an invalid segment number.
r 00:41 0.038 1 level 2

Using lines of 607 characters or less avoids the issue - but qedx still should't crash.

Change History (0)

Note: See TracTickets for help on using tickets.