mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Fix an OOB access in the cutbuffer implementation.
This commit is contained in:
parent
17f4bd2060
commit
251d8a686a
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size, CUTBUFFER_UPDATE_OP update_
|
|||
tmp->cutbuffer = g_new(unichar, cutbuffer_new_size+1);
|
||||
memcpy(tmp->cutbuffer, tmpcutbuffer,
|
||||
tmp->cutbuffer_len * sizeof(unichar));
|
||||
memcpy(tmp->cutbuffer + tmp->cutbuffer_len * sizeof(unichar),
|
||||
memcpy(tmp->cutbuffer + tmp->cutbuffer_len,
|
||||
entry->text + entry->pos - size, size * sizeof(unichar));
|
||||
|
||||
tmp->cutbuffer_len = cutbuffer_new_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue