summaryrefslogtreecommitdiff
path: root/shared-module/sharpdisplay/SharpMemoryFramebuffer.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-09-28 18:59:57 -0500
committerJeff Epler <jepler@gmail.com>2020-09-29 19:44:25 -0500
commit176b3376113180ab38fe1c43e2947d358ff041fe (patch)
tree0651442e6f3f9c7f5f6acedd095ece506fc3b039 /shared-module/sharpdisplay/SharpMemoryFramebuffer.c
parent2bb44f6c4d66c5b8f296a5944ada4f704ebadd2b (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