Skip to content

LibDMDUtil segfaults if DMD is bigger than 256 * 64 #65

@francisdb

Description

@francisdb

https://vpuniverse.com/files/file/11755-hellraiser/ has the following code:

Const LCDScreen = True 
Dim UseFlexDMD
If Table1.ShowDT = True then
    UseFlexDMD = False
Else
    UseFlexDMD = True
End If
If LCDScreen = True Then
  FlexDMD.Width = 512
  FlexDMD.Height = 128
End If

However this segfaults in the code below as the buffer is limited to 256 * 64

uint8_t data[256 * 64 * 3];

Since the user an configure any width/height in the script this should support any size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions