Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2014-05-26 21:05:11

charliex
Contributor
From: Los Angeles/Scotland
Registered: 2010-08-05
Posts: 70
Website

appmain/CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K

i keep noticing this and forgetting about it


void UsbPacketReceived(uint8_t *packet, int len)

...

case CMD_DOWNLOAD_RAW_ADC_SAMPLES_125K:
...

size_t len = MIN((c->arg[1] - i),USB_CMD_DATA_SIZE);
                cmd_send(CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K,i,len,0,((byte_t*)BigBuf)+c->arg[0]+i,len);


i don't know if this is whats intended, is the len passed in to the overall function, meant to be overwritten?  or should it just be that that it's expecting to see both len's and one's just overlapped without noticing?

Offline

Board footer

Powered by FluxBB