mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-09-10 22:54:54 +08:00
revert calloc changes in bigbuf for time sensitive functions
This commit is contained in:
parent
ba5a27e5f2
commit
f0ea0d251a
1 changed files with 3 additions and 3 deletions
|
@ -354,7 +354,7 @@ int emlGet(uint8_t *out, uint32_t offset, uint32_t length) {
|
|||
tosend_t *get_tosend(void) {
|
||||
|
||||
if (s_toSend.buf == NULL) {
|
||||
s_toSend.buf = BigBuf_calloc(TOSEND_BUFFER_SIZE);
|
||||
s_toSend.buf = BigBuf_malloc(TOSEND_BUFFER_SIZE);
|
||||
}
|
||||
return &s_toSend;
|
||||
}
|
||||
|
@ -390,14 +390,14 @@ void tosend_stuffbit(int b) {
|
|||
|
||||
dmabuf16_t *get_dma16(void) {
|
||||
if (s_dma_16.buf == NULL) {
|
||||
s_dma_16.buf = (uint16_t *)BigBuf_calloc(DMA_BUFFER_SIZE * sizeof(uint16_t));
|
||||
s_dma_16.buf = (uint16_t *)BigBuf_malloc(DMA_BUFFER_SIZE * sizeof(uint16_t));
|
||||
}
|
||||
return &s_dma_16;
|
||||
}
|
||||
|
||||
dmabuf8_t *get_dma8(void) {
|
||||
if (s_dma_8.buf == NULL) {
|
||||
s_dma_8.buf = BigBuf_calloc(DMA_BUFFER_SIZE);
|
||||
s_dma_8.buf = BigBuf_malloc(DMA_BUFFER_SIZE);
|
||||
}
|
||||
return &s_dma_8;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue