mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 19:59:34 +08:00
Hopefully correct code for C's strict aliasing rules
This commit is contained in:
parent
9dbe0941fd
commit
45dcfac2cc
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@ void SendVersion(void)
|
||||||
* symbol _bootphase1_version_pointer, perform slight sanity checks on the
|
* symbol _bootphase1_version_pointer, perform slight sanity checks on the
|
||||||
* pointer, then use it.
|
* pointer, then use it.
|
||||||
*/
|
*/
|
||||||
void *bootrom_version = *(void**)&_bootphase1_version_pointer;
|
char *bootrom_version = *(char**)&_bootphase1_version_pointer;
|
||||||
if( bootrom_version < (void*)&_flash_start || bootrom_version >= (void*)&_flash_end ) {
|
if( bootrom_version < &_flash_start || bootrom_version >= &_flash_end ) {
|
||||||
DbpString("bootrom version information appears invalid");
|
DbpString("bootrom version information appears invalid");
|
||||||
} else {
|
} else {
|
||||||
FormatVersionInformation(temp, sizeof(temp), "bootrom: ", bootrom_version);
|
FormatVersionInformation(temp, sizeof(temp), "bootrom: ", bootrom_version);
|
||||||
|
|
Loading…
Reference in a new issue