possible fix for 64bit payload length

there are no checks to make sure this data will actually fit in memory.. could set your app on fire, fair warning.