Tobias Klauser
c061ba923f
unix: define isBigEndian for all GOARCHes supported by gccgo
...
For golang/go#18031
For golang/go#37443
Change-Id: I49dabb362592bb61532a0c4f193919c3f2036af3
Reviewed-on: https://go-review.googlesource.com/c/sys/+/270317
Trust: Tobias Klauser <tobias.klauser@gmail.com >
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2020-11-16 16:16:45 +00:00
CarlosEDP
94b544f455
unix: add riscv64 tag to endian_little.go
...
Update golang/go#27532
Change-Id: I302f7db344e7704000b6e0c976519965b4f6a4ee
GitHub-Last-Rev: a18db686b27b2cf5d8bfc266dd9081fa549f93dc
GitHub-Pull-Request: golang/sys#38
Reviewed-on: https://go-review.googlesource.com/c/sys/+/187637
Run-TryBot: Ian Lance Taylor <iant@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2019-07-26 00:22:31 +00:00
Jason Chu
7de4796419
unix: add mips and mipsle to endian files
...
golang.org/x/sys/unix currently does not compile on mips nor mipsle as it fails to set the `isBigEndian` variable. This is due to mips and mipsle being missing in the build tag of their respective endian files.
This change adds mips to the build tag of `endian_big.go` and mipsle to the build tag of `endian_little.go` to fix this issue.
Change-Id: I79947cedb2645e80143e65bde00f2c95261125fb
Reviewed-on: https://go-review.googlesource.com/39730
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-04-06 17:19:08 +00:00
Koki Ide
9a7256cb28
unix: validate ParseDirent inputs
...
This is a copy of https://golang.org/cl/23780 for the x/sys repo.
Don't panic, crash, or return references to uninitialized memory when
ParseDirent is passed invalid input.
Updates golang/go#15653
Fixes golang/go#19754
Change-Id: Idb7cffe14d48ed662e5a55ecb5249c1907cf4003
Reviewed-on: https://go-review.googlesource.com/38758
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-03-29 06:16:34 +00:00