Ignore:
Timestamp:
01/30/23 03:11:59 (13 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
5
Parents:
45f60cf
Message:

libmisc/shell/edit: Return if no memory in move_gap

Closes #4565

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_edit.c

    r45f60cf rb7f1fa2f  
    408408    newsize = (ed->end - ed->start) - gapsize + minsize;
    409409    start = (unsigned char *) malloc(newsize); // TODO check for out of memory
     410    if (start == NULL) {
     411        return;
     412    }
    410413    gap = start + pos;
    411414    rest = gap + minsize;
Note: See TracChangeset for help on using the changeset viewer.