commit | 66548a8bff803205788b8e034fa9f37dcea3fc5f | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Fri Feb 07 11:49:56 2020 -0800 |
committer | Sam Lantinga <slouken@libsdl.org> | Fri Feb 07 11:49:56 2020 -0800 |
tree | 897a26d3768aa14cb2a525b56cc6c05fb1379d0a | |
parent | 39547c836792153e8ab9fd17e7b300fee9e1b7ce [diff] |
Fixed bug 4968 - NULL passed to memcpy in WriteProprietary in SDL_hidapi_switch.c meyraud705 In SDL_hidapi_switch.c line 443: Function BTrySetupUSB call WriteProprietary with pBuf=NULL and ucLen=0 line 376: WriteProprietary check its input (!pBuf && ucLen > 0) || ucLen > sizeof(packet.rgucProprietaryData): ucLen is 0 so it passes line 382: WriteProprietary call memcpy with pBuf=NULL