sparse-llvm error in GEP offset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The memops offset field in sparse linearized instruction is unsigned,
which is causing invalid memory access in sparse-llvm. A workaround
for this is to cast the offset to int in calc_memop_addr() function in
sparse-llvm:

 off = LLVMConstInt(int_type, (int) insn->offset, 0);

However, perhaps the offset should not be unsigned in the first place.

Regards
Dibyendu
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux