mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-06 16:01:13 +00:00
libpcsclite uses 64-bit DWORD on amd64. Treating it as uint32 smashed the heap while listing readers at startup.
14 lines
274 B
Go
14 lines
274 B
Go
//go:build linux
|
|
|
|
package pcsc
|
|
|
|
// Linux pcsclite maps DWORD/LONG to unsigned long / long.
|
|
// On LP64 that is 64-bit; on 32-bit ARM it is 32-bit. Go uint/int match.
|
|
type pcscDword = uint
|
|
type pcscLong = int
|
|
|
|
type ioRequest struct {
|
|
Protocol pcscDword
|
|
Length pcscDword
|
|
}
|