<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go, branch go1.19.9</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=go1.19.9</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=go1.19.9'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-05-02T17:21:05Z</updated>
<entry>
<title>[release-branch.go1.19] go1.19.9</title>
<updated>2023-05-02T17:21:05Z</updated>
<author>
<name>Gopher Robot</name>
<email>gobot@golang.org</email>
</author>
<published>2023-05-02T16:59:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=484330d038d060c6e4db3dc8e6ea2b811b2a44d8'/>
<id>urn:sha1:484330d038d060c6e4db3dc8e6ea2b811b2a44d8</id>
<content type='text'>
Change-Id: Ib6c0fa04bf59bfaae8081927059b4860dfcf6d21
Reviewed-on: https://go-review.googlesource.com/c/go/+/491436
Auto-Submit: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
TryBot-Bypass: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] html/template: emit filterFailsafe for empty unquoted attr value</title>
<updated>2023-05-02T16:36:07Z</updated>
<author>
<name>Roland Shoemaker</name>
<email>bracewell@google.com</email>
</author>
<published>2023-04-13T21:01:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9db0e74f606b8afb28cc71d4b1c8b4ed24cabbf5'/>
<id>urn:sha1:9db0e74f606b8afb28cc71d4b1c8b4ed24cabbf5</id>
<content type='text'>
An unquoted action used as an attribute value can result in unsafe
behavior if it is empty, as HTML normalization will result in unexpected
attributes, and may allow attribute injection. If executing a template
results in a empty unquoted attribute value, emit filterFailsafe
instead.

Thanks to Juho Nurminen of Mattermost for reporting this issue.

For #59722
Fixes #59815
Fixes CVE-2023-29400

Change-Id: Ia38d1b536ae2b4af5323a6c6d861e3c057c2570a
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1826631
Reviewed-by: Julie Qiu &lt;julieqiu@google.com&gt;
Run-TryBot: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1851498
Reviewed-by: Roland Shoemaker &lt;bracewell@google.com&gt;
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/491357
Run-TryBot: Carlos Amedee &lt;carlos@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] html/template: handle all JS whitespace characters</title>
<updated>2023-05-02T16:35:20Z</updated>
<author>
<name>Roland Shoemaker</name>
<email>bracewell@google.com</email>
</author>
<published>2023-04-11T15:27:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ce7bd33345416e6d8cac901792060591cafc2797'/>
<id>urn:sha1:ce7bd33345416e6d8cac901792060591cafc2797</id>
<content type='text'>
Rather than just a small set. Character class as defined by \s [0].

Thanks to Juho Nurminen of Mattermost for reporting this.

For #59721
Fixes  #59813
Fixes CVE-2023-24540

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes

Change-Id: I56d4fa1ef08125b417106ee7dbfb5b0923b901ba
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1821459
Reviewed-by: Julie Qiu &lt;julieqiu@google.com&gt;
Run-TryBot: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1851497
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/491355
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
TryBot-Bypass: Carlos Amedee &lt;carlos@golang.org&gt;
Run-TryBot: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] html/template: disallow angle brackets in CSS values</title>
<updated>2023-05-02T16:31:51Z</updated>
<author>
<name>Roland Shoemaker</name>
<email>bracewell@google.com</email>
</author>
<published>2023-04-13T22:40:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e49282327b05192e46086bf25fd3ac691205fe80'/>
<id>urn:sha1:e49282327b05192e46086bf25fd3ac691205fe80</id>
<content type='text'>
Angle brackets should not appear in CSS contexts, as they may affect
token boundaries (such as closing a &lt;style&gt; tag, resulting in
injection). Instead emit filterFailsafe, matching the behavior for other
dangerous characters.

Thanks to Juho Nurminen of Mattermost for reporting this issue.

For #59720
Fixes #59811
Fixes CVE-2023-24539

Change-Id: Iccc659c9a18415992b0c05c178792228e3a7bae4
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1826636
Reviewed-by: Julie Qiu &lt;julieqiu@google.com&gt;
Run-TryBot: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/1851496
Run-TryBot: Damien Neil &lt;dneil@google.com&gt;
Reviewed-by: Roland Shoemaker &lt;bracewell@google.com&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/491335
Run-TryBot: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] crypto/tls: fix PSK binder calculation</title>
<updated>2023-04-24T18:24:46Z</updated>
<author>
<name>Tero Saarni</name>
<email>tero.saarni@gmail.com</email>
</author>
<published>2023-04-12T10:07:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c3c53a2c67f6f851ef974d54db1cc0d4d0ee6f75'/>
<id>urn:sha1:c3c53a2c67f6f851ef974d54db1cc0d4d0ee6f75</id>
<content type='text'>
When server and client have mismatch in curve preference, the server will
send HelloRetryRequest during TLSv1.3 PSK resumption. There was a bug
introduced by Go1.19.6 or later and Go1.20.1 or later, that makes the client
calculate the PSK binder hash incorrectly. Server will reject the TLS
handshake by sending alert: invalid PSK binder.

For #59424.
Fixes #59539.

Change-Id: I2ca8948474275740a36d991c057b62a13392dbb9
GitHub-Last-Rev: 1aad9bcf27f563449c1a7ed6d0dd1d247cc65713
GitHub-Pull-Request: golang/go#59425
Reviewed-on: https://go-review.googlesource.com/c/go/+/481955
Reviewed-by: Roland Shoemaker &lt;roland@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Run-TryBot: Roland Shoemaker &lt;roland@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Roland Shoemaker &lt;roland@golang.org&gt;
(cherry picked from commit 2c70690451f1484607a9172a4c24f78ae832dcb0)
Reviewed-on: https://go-review.googlesource.com/c/go/+/488075
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Run-TryBot: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] cmd/compile: use correct type for byteswaps on multi-byte stores</title>
<updated>2023-04-24T13:43:33Z</updated>
<author>
<name>Keith Randall</name>
<email>khr@golang.org</email>
</author>
<published>2023-04-01T17:33:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=ca9947db78f4dd37052e163850ed23e8c47d7e21'/>
<id>urn:sha1:ca9947db78f4dd37052e163850ed23e8c47d7e21</id>
<content type='text'>
Use the type of the store for the byteswap, not the type of the
store's value argument.

Normally when we're storing a 16-bit value, the value being stored is
also typed as 16 bits. But sometimes it is typed as something smaller,
usually because it is the result of an upcast from a smaller value,
and that upcast needs no instructions.

If the type of the store's arg is thinner than the type being stored,
and the byteswap'd value uses that thinner type, and the byteswap'd
value needs to be spilled &amp; restored, that spill/restore happens using
the thinner type, which causes us to lose some of the top bits of the
value.

Fixes #59373

Change-Id: If6ce1e8a76f18bf8e9d79871b6caa438bc3cce4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/481395
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Run-TryBot: Keith Randall &lt;khr@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-on: https://go-review.googlesource.com/c/go/+/483177
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] syscall: restore original NOFILE rlimit in child process</title>
<updated>2023-04-14T18:01:07Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2023-03-22T20:33:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=130a7f8e8d5d3ecb7f17a741cc18e96f134fc38a'/>
<id>urn:sha1:130a7f8e8d5d3ecb7f17a741cc18e96f134fc38a</id>
<content type='text'>
If we increased the NOFILE rlimit when starting the program,
restore the original rlimit when forking a child process.

In CL 393354 the os package was changed to raise the open file rlimit
at program start. That code is not inherently tied to the os package.
This CL moves it into the syscall package.

This is a backport of CLs 476096 and 476097 from trunk.

For #46279
Fixes #59063

Change-Id: I9be6ecc52d4f82eb226907611aec9df808e1da84
Reviewed-on: https://go-review.googlesource.com/c/go/+/478660
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] cmd/compile: fix ir.StaticValue for ORANGE</title>
<updated>2023-04-12T20:25:00Z</updated>
<author>
<name>Junwei Zuo</name>
<email>zuojunwei.2023@bytedance.com</email>
</author>
<published>2023-04-12T10:53:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=abb86e6e82ec67f7b7cecd8c6225466b25ca2814'/>
<id>urn:sha1:abb86e6e82ec67f7b7cecd8c6225466b25ca2814</id>
<content type='text'>
Range statement will mutate the key and value, so we should treat them as reassigned.

Fixes #59579

Change-Id: I9c6b67d938760a0c6a1d9739f2737c67af4a3a10
Reviewed-on: https://go-review.googlesource.com/c/go/+/483855
Run-TryBot: Wayne Zuo &lt;wdvxdr@golangcn.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
Auto-Submit: Keith Randall &lt;khr@golang.org&gt;
Reviewed-by: Keith Randall &lt;khr@google.com&gt;
Reviewed-by: Keith Randall &lt;khr@golang.org&gt;
(cherry picked from commit 89567a35c11c343cf765d6fb1270e1250e50d83f)
Reviewed-on: https://go-review.googlesource.com/c/go/+/484135
Run-TryBot: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] html/template,mime/multipart: document new GODEBUG settings</title>
<updated>2023-04-05T16:19:14Z</updated>
<author>
<name>Michael Anthony Knyszek</name>
<email>mknyszek@google.com</email>
</author>
<published>2023-04-04T22:07:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=22c1d18a276a6edadfb140ad7013ed74b7ed792b'/>
<id>urn:sha1:22c1d18a276a6edadfb140ad7013ed74b7ed792b</id>
<content type='text'>
This change documents the new GODEBUG settings introduced for
html/template and mime/multipart, released with Go 1.19.8 and Go 1.20.3
as part of a security fix.

Updates #59153.
For #59269.
Updates #59234.
For #59271.

Change-Id: I25f4d8245da3301dccccfb44da8ff1a5985392a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/482535
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
Run-TryBot: Michael Knyszek &lt;mknyszek@google.com&gt;
</content>
</entry>
<entry>
<title>[release-branch.go1.19] cmd/compile: defer transitive inlining until after AST is edited</title>
<updated>2023-04-05T15:28:06Z</updated>
<author>
<name>Michael Knyszek</name>
<email>mknyszek@google.com</email>
</author>
<published>2023-04-03T20:07:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e6130c66c87ba54b5847825ca68d221d8898ceb5'/>
<id>urn:sha1:e6130c66c87ba54b5847825ca68d221d8898ceb5</id>
<content type='text'>
This CL changes the inliner to process transitive inlining iteratively
after the AST has actually been edited, rather than recursively and
immediately. This is important for handling indirect function calls
correctly, because ir.reassigned walks the function body looking for
reassignments; whereas previously the inlined reassignments might not
have been actually added to the AST yet.

Fixes #59158.

This change was previously reverted as CL 481796 because the branch
was frozen for release.

Change-Id: I97fcd32956cc1349d87a92066e8559cb90da73b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/481797
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
</feed>
