Changeset edd2e61 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:23Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8921188
Parents:
999cb48
git-author:
Dzejrou <dzejrou@…> (2018-05-11 00:07:15)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
Message:

cpp: fixed off-by-one that could pagefault in some cases of copy after append

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/string.hpp

    r999cb48 redd2e61  
    14841484
    14851485                size_ = size;
    1486                 capacity_ = size;
     1486                capacity_ = size + 1;
    14871487
    14881488                data_ = allocator_.allocate(capacity_);
Note: See TracChangeset for help on using the changeset viewer.