#3790: undefined behavior with <history-up>
---------------------+----------------------
Reporter: vinc17 | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version:
Resolution: fixed | Keywords:
---------------------+----------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [444f1f013f1b775fae255dbd33faec3ed41a5e74]:
{{{
#!CommitTicketReference repository=""
revision="444f1f013f1b775fae255dbd33faec3ed41a5e74"
Fix memcpy buf=NULL/len=0 issue in replace_part(). (closes #3790)
Calling memcpy with src or dest=NULL is technically illegal, even if
len=0. Recent compilers seem to now be generating warnings/errors with
this.
replace_part() is currently the only place we are getting bug reports,
so for now just fix the problem in this one place.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3790#comment:5>
Mutt <http://www.mutt.org/>
The Mutt mail user agent