mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 19:39:40 +00:00
prog: extend a TODO about big-endian hints
This commit is contained in:
parent
64482eb948
commit
6ceee05ad9
@ -113,6 +113,10 @@ func checkConstArg(arg *ConstArg, compMap CompMap, exec func()) {
|
||||
|
||||
func checkDataArg(arg *DataArg, compMap CompMap, exec func()) {
|
||||
// TODO(dvyukov): we need big-endian match for ANYBLOBs.
|
||||
// TODO(dvyukov): any probably not just for ANYBLOBs. Consider that
|
||||
// kernel code does not convert the data (i.e. not ntohs(pkt->proto) == ETH_P_BATMAN),
|
||||
// but instead converts the constant (i.e. pkt->proto == htons(ETH_P_BATMAN)).
|
||||
// In such case we will see dynamic operand that does not match what we have in the program.
|
||||
bytes := make([]byte, 8)
|
||||
data := arg.Data()
|
||||
size := len(data)
|
||||
|
Loading…
Reference in New Issue
Block a user