mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
coverity 274112 - unintended sign extension
This commit is contained in:
parent
b0b5bcda76
commit
5e21566201
1 changed files with 2 additions and 2 deletions
|
@ -888,8 +888,8 @@ void SimulateHitagSTag(bool tag_mem_supplied, uint8_t *data) {
|
|||
// use the last read tag
|
||||
}
|
||||
|
||||
tag.uid = (tag.pages[0][3] << 24 | tag.pages[0][2] << 16 | tag.pages[0][1] << 8 | tag.pages[0][0]);
|
||||
tag.key = (tag.pages[3][3] << 24 | tag.pages[3][2] << 16 | tag.pages[3][1] << 8 | tag.pages[3][0]);
|
||||
tag.uid = ((tag.pages[0][3]) << 24) | ((tag.pages[0][2]) << 16) | ((tag.pages[0][1]) << 8) | tag.pages[0][0];
|
||||
tag.key = ((tag.pages[3][3]) << 24) | ((tag.pages[3][2]) << 16) | ((tag.pages[3][1]) << 8) | tag.pages[3][0];
|
||||
tag.key <<= 16;
|
||||
tag.key += ((tag.pages[2][3]) << 8) + tag.pages[2][2];
|
||||
tag.pwdl0 = tag.pages[2][0];
|
||||
|
|
Loading…
Reference in a new issue