diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-09-28 18:59:57 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-09-29 19:44:25 -0500 |
| commit | 176b3376113180ab38fe1c43e2947d358ff041fe (patch) | |
| tree | 0651442e6f3f9c7f5f6acedd095ece506fc3b039 /shared-module/sharpdisplay/SharpMemoryFramebuffer.c | |
| parent | 2bb44f6c4d66c5b8f296a5944ada4f704ebadd2b (diff) | |
rgbmatrix: validate width= constructor parameter
In #3482, @cwalther noted that, hypothetically, a zero byte allocation
could be made in the RGBMatrix constructor. Ensure that width is positive.
Height was already checked against the number of RGB pins if it was specified,
so zero is ruled out there as well.
Diffstat (limited to 'shared-module/sharpdisplay/SharpMemoryFramebuffer.c')
0 files changed, 0 insertions, 0 deletions
