Changeset 50c8e72 in mainline


Ignore:
Timestamp:
2022-02-01T14:38:00Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7eec25fc
Parents:
5e629ad4
git-author:
Jiri Svoboda <jiri@…> (2022-01-30 18:37:17)
git-committer:
Jiri Svoboda <jiri@…> (2022-02-01 14:38:00)
Message:

Editor cannot use memcpy() on overlapping blocks while loading file

This fixes corruption while loading file with CPU=486.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/edit/edit.c

    r5e629ad4 r50c8e72  
    978978
    979979                bcnt -= off;
    980                 memcpy(buf, buf + off, bcnt);
     980                memmove(buf, buf + off, bcnt);
    981981
    982982                insert_char(c);
Note: See TracChangeset for help on using the changeset viewer.