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 , 7 years ago
comment:3 by , 7 years ago
| Milestone: | → MR12.6g |
|---|---|
| Status: | new → assigned |
comment:4 by , 7 years ago
| Status: | assigned → accepted |
|---|
comment:6 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

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);
The reference to the string at arg will reference through a null ap pointer if there is no argument at that position.