Opened 8 years ago

Closed 5 years ago

#130 closed defect (fixed)

mail -ack crashes when there are no messages to acknowledge

Reported by: Trn Owned by: Eric Swenson
Priority: minor Milestone: MR12.7
Component: Standard Library Version: MR12.6f
Keywords: mail, messages Cc:

Description

Example:

mail -ack

Error: Attempt by mail$|5217
(>system_library_standard>bound_msg_facility_)
to reference through null pointer

Change History (6)

comment:1 by Eric Swenson, 7 years ago

Also happens if you use "mail -bf" and no path argument.

Issue is that there is no check for an error code return at line 545:

GET_PATH: call cu_$arg_ptr (argno, ap, al, code);

argno = argno+1;
if substr (arg, 1, 1) = "-" then go to GET_PATH;
buffer = arg;

The reference to the string at arg will reference through a null ap pointer if there is no argument at that position.

comment:3 by Eric Swenson, 7 years ago

Milestone: MR12.6g
Status: newassigned

comment:4 by Eric Swenson, 7 years ago

Status: assignedaccepted

comment:5 by Eric Swenson, 7 years ago

Milestone: MR12.6gMR12.7

Milestone renamed

comment:6 by Eric Swenson, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.