Commit 64e4a9d
committed
Assert sanity of name+len arguments to allocmy()
Recent discussons on github [1] found a bug when calling this function as
allocmy("", 0, 0)
This ought not be allowed. The length must be at least 2, because the
function checks the first two characters of `name`.
[1]: #23574 (comment)1 parent a7a8a28 commit 64e4a9d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
| 770 | + | |
769 | 771 | | |
770 | 772 | | |
771 | 773 | | |
| |||
0 commit comments