Modify ↓
Opened 3 years ago Closed 3 years ago #159 closed bug (fixed)ARexx help command produce Hits and output trash
Description (last modified by damato)
As the Summary say ARexx help command produce Hits and output trash.
The cause is that the for loop in rexx/help.c line 68 does not
A possible solution is to terminate the list in Rexx.c like
Is it ok if i commit the patch? Attachments (1)Change History (7)Changed 3 years ago by opiopicomment:1 Changed 3 years ago by thboeckel
comment:2 Changed 3 years ago by thboeckel
Hi Frank!
Your patch was exactly the correct thing to do. But there was one little notion missing. YAM uses a binary search for the command lookup which takes the number of array entries as a parameter. The dummy entry must be excluded from this number, otherwise the search would cause other crashes or even refuse certain commands although they exist.
Please continue to contribute patches like this or even commit them directly to the repository. Neither Jens nor me are perfect either and both of us already commited "half" patches. comment:3 Changed 3 years ago by opiopi
No problem. The mainpoint is that the bug is fixed.
I saw the bsearch issue as i view into your patch. comment:4 Changed 3 years ago by damato
comment:5 Changed 3 years ago by damato
reopened due to upcoming merge on 2.6p1 branch. comment:6 Changed 3 years ago by thboeckel
Note: See
TracTickets for help on using
tickets. | This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber
| ||||||||||||||||||||||||||||



(In [4673]) * Rexx.c, rexx/help.c: added terminating dummy entry to avoid a crash in the