Changeset f90eb75 in mainline


Ignore:
Timestamp:
2011-08-21T13:24:21Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5935c079
Parents:
b48d046 (diff), 8a6ba94 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge another bdsh stack overflow fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/compl.c

    rb48d046 rf90eb75  
    9898        int retval;
    9999        tokenizer_t tok;
    100         token_t tokens[WORD_MAX];
     100        token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
     101        if (tokens == NULL) {
     102                retval = ENOMEM;
     103                goto error;
     104        }
    101105        int current_token;
    102106        size_t tokens_length;
     
    254258        if (cs != NULL)
    255259                free(cs);
     260        if (tokens != NULL)
     261                free(tokens);
    256262
    257263        return retval;
Note: See TracChangeset for help on using the changeset viewer.