Mercurial > hg
diff hgext/censor.py @ 38198:3c84493556db stable
chg: fix an undefined behavior about memcpy
Spot by Wez Furlong. `memcpy(x, NULL, 0)` is undefined according to [1].
[1]: https://stackoverflow.com/questions/5243012
Differential Revision: https://phab.mercurial-scm.org/D3698
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 06 Jun 2018 12:53:26 -0700 |
parents | 0596d27457c6 |
children | e219e355e088 |