mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +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()) {
|
func checkDataArg(arg *DataArg, compMap CompMap, exec func()) {
|
||||||
// TODO(dvyukov): we need big-endian match for ANYBLOBs.
|
// 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)
|
bytes := make([]byte, 8)
|
||||||
data := arg.Data()
|
data := arg.Data()
|
||||||
size := len(data)
|
size := len(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user