]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
internal/runtime/cgroup: stricter unescapePath
author胡玮文 <huweiwen.hww@alibaba-inc.com>
Sat, 22 Nov 2025 03:00:47 +0000 (11:00 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 27 Nov 2025 06:29:49 +0000 (22:29 -0800)
commitcead111a772c2852c870fb140029d89152da4d14
treec7193d29fa206f3bd2cf3b27c9acc6dbe97282ce
parentc2af9f14b429741cfd4fed11a67a52427dec3931
internal/runtime/cgroup: stricter unescapePath

8 and 9 in escape sequence is invalid now, it should be octal.

Escape sequence larger than \377 is invalid now, it does not fit one
byte.

Change-Id: I3fdebce1d054c44919f0e66a33c778b5a2b099e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/723242
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/internal/runtime/cgroup/cgroup.go
src/internal/runtime/cgroup/cgroup_test.go