- 08 Dec, 2017 10 commits
-
-
Tobias Klauser authored
Change-Id: I33f14ea1d58e18081bae3f16c87d11312249c842 Reviewed-on: https://go-review.googlesource.com/82835Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Caleb Spare authored
Change-Id: I235c5bc7ce598047eccc1518984dd27f568046a2 Reviewed-on: https://go-review.googlesource.com/82776 Run-TryBot: Caleb Spare <cespare@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Samuel Tan authored
This error message should reference t2, not t1. Change-Id: I2e42b8335ca9367a1fb7f76c38a1bcf8f32a2bf3 Reviewed-on: https://go-review.googlesource.com/82816Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Rhys Hiltner authored
This was originally done in https://golang.org/cl/31359 but partially undone (apparently unintentionally) in https://golang.org/cl/34310 Fix it, and update tests to ensure the error is unrecoverable. Fixes #23039 Change-Id: I923ebd613a05e67d8acce77f4a68c64c8574faa6 Reviewed-on: https://go-review.googlesource.com/82656 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
-
Ian Lance Taylor authored
The DNS code can start goroutines and not wait for them to complete. This does no harm, but in tests this can cause a race condition with the test hooks that are installed and unintalled around the tests. Add a WaitGroup that tests of DNS can use to avoid the race. Fixes #21090 Change-Id: I6c1443a9c2378e8b89d0ab1d6390c0e3e726b0ce Reviewed-on: https://go-review.googlesource.com/82795Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Samuel Tan authored
If (*Template).New replaces an existing template, reset the existing template that is going to be replaced so that any later attempt to execute this orphaned template will fail. Fixes #22780 Change-Id: I0e058f42c1542c86d19dc5f6c4e1e859e670a4a2 Reviewed-on: https://go-review.googlesource.com/78542 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Keith Randall authored
Pointer arithemetic is done mod 2^32 on 386, so we can just drop the high bits of any large constant offsets. The bounds check will make sure wraparounds are never observed. Fixes #21655 Change-Id: I68ae5bbea9f02c73968ea2b21ca017e5ecb89223 Reviewed-on: https://go-review.googlesource.com/82675 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
-
Brad Fitzpatrick authored
Change-Id: I65209b90ed7c56d4c751b3e4b3ce1de52dae368c Reviewed-on: https://go-review.googlesource.com/82635Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
I can reproduce with a very short timeout (fractions of a millisecond) combined with -race. But given that this is inherently sensitive to actual time, add a testing mechanism to retry with increasingly large times to compensate for busy buidlers. This also means the test is usually faster now, too, since we can start with smaller durations. Fixes #19608 Change-Id: I3a222464720195849da768e9801eb7b43baa4aeb Reviewed-on: https://go-review.googlesource.com/82595 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
It's unused and doesn't work. Fixes #20833 Change-Id: I09335e84c60f88dd1771f7353b0097f36a5e7660 Reviewed-on: https://go-review.googlesource.com/82636 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Dec, 2017 13 commits
-
-
Brad Fitzpatrick authored
It's 32-bit binaries that fail for reasons unknown on 64-bit kernels. Change-Id: Ib410af0491160e3ed8d32118966142516123db2c Reviewed-on: https://go-review.googlesource.com/82655Reviewed-by: Andrew Bonventre <andybons@golang.org>
-
Brad Fitzpatrick authored
Change-Id: I28ddb8cd347120c08d5b58ae20f481b60416abc1 Reviewed-on: https://go-review.googlesource.com/82755Reviewed-by: Andrew Bonventre <andybons@golang.org>
-
Brad Fitzpatrick authored
Fixes #21681 Updates #21728 Change-Id: I79cf4564c1355ecab891102d4215cbbffd8eb0ce Reviewed-on: https://go-review.googlesource.com/82535Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Joe Kyo authored
Change-Id: I5a38200b9e050b484ec39f47c637e651e237390d Reviewed-on: https://go-review.googlesource.com/82536Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Alberto Donizetti authored
Change-Id: Ib8ef626ae6bc66571ecf4569e37feb75b4b90d10 Reviewed-on: https://go-review.googlesource.com/82555Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Than McIntosh authored
The DWARF inline info generation code was using file/line/column (from src.Pos) as a means of matching up pre- and post-optimization variable nodes. This turns out to be problematic since it looks as though distinct formals on the same line can be assigned the same column number. Work around this issue by adding variable names to the disambiguation code. Added a testpoint to the linker DWARF test that checks to make sure each abstract origin offset of distinct within a given DWARF DW_AT_inlined_routine body. Fixes #23020. Change-Id: Ie09bbe01dc60822d84d4085547b138e644036fb3 Reviewed-on: https://go-review.googlesource.com/82396Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
-
Andrew Bonventre authored
Change-Id: I2a4347540ecb94a9f124a228dc31452620ab0645 Reviewed-on: https://go-review.googlesource.com/82335Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Chris Broadfoot <cbro@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Artyom Pervukhin authored
Closes #23028 Change-Id: I469f1ab2dee9151334b38e0d3a22eb9840c8807b Reviewed-on: https://go-review.googlesource.com/82495Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Ian Lance Taylor authored
Fixes #22858 Change-Id: I0478d5609e381f01c7345e7f53c24af05d7f78ad Reviewed-on: https://go-review.googlesource.com/82415 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Mikio Hara authored
Updates x/arch/arm64 to git rev. 530ae47 for CL 82437. Change-Id: I0131f7ac783462fcaeddf5625c59784fe30bbd5a Reviewed-on: https://go-review.googlesource.com/82435Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Ian Lance Taylor authored
Fixes #20953 Change-Id: Ia30a6e0e335c1f738e1359500e09057b5981f1c7 Reviewed-on: https://go-review.googlesource.com/82397 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
Fixes #22911 Change-Id: I61de85323e290b64917a09bc512935e835ff7cf0 Reviewed-on: https://go-review.googlesource.com/82276Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Ian Lance Taylor authored
Fixes #20315 Change-Id: I5d5c82f10902b59168fc0cca0af50286843df55d Reviewed-on: https://go-review.googlesource.com/82375 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 06 Dec, 2017 17 commits
-
-
Joe Tsai authored
This CL reverts CL 76851 and takes a different approach to #21357. The changes in encode.go and encode_test.go are reverts that rolls back the changed behavior in CL 76851 where embedded pointers to unexported struct types were unilaterally ignored in both marshal and unmarshal. Instead, these fields are handled as before with the exception that it returns an error when Unmarshal is unable to set an unexported field. The behavior of Marshal is now unchanged with regards to #21357. This policy maintains the greatest degree of backwards compatibility and avoids silently discarding data the user may have expected to be present. Fixes #21357 Change-Id: I7dc753280c99f786ac51acf7e6c0246618c8b2b1 Reviewed-on: https://go-review.googlesource.com/82135 Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Tobias Klauser authored
Update the tzdata database to version 2017c (released 2017-10-20). Updates #22487 Change-Id: If58ff89173ef1f1044075505f42ff132b57795f0 Reviewed-on: https://go-review.googlesource.com/74230Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Russ Cox authored
Fixed by CL 76025 yesterday, without realizing it: the testshared and testplugin builds of separate iface_i packages were colliding incorrectly in the cache. Including the build directory fixes that. Fixes #22571. Change-Id: Id8193781c67c3150823dc1f48eae781dfe3702fb Reviewed-on: https://go-review.googlesource.com/76371 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
-
Russ Cox authored
Fixes #22642. Change-Id: I2ed6305555a0cf753b9cdce061463b1749d5e53e Reviewed-on: https://go-review.googlesource.com/81975 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Russ Cox authored
For #23011. Change-Id: Ibd934f32e41cb8dddbd3d68a324536cf29a97916 Reviewed-on: https://go-review.googlesource.com/82275 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Alberto Donizetti authored
Change-Id: Ife60468d508f90321733ebdbdb0e6cf443ba1659 Reviewed-on: https://go-review.googlesource.com/82156Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Alberto Donizetti authored
Change-Id: I8a9e4d00247fe9bda6e19551850bdec0367df2e1 Reviewed-on: https://go-review.googlesource.com/82157Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Russ Cox authored
Change-Id: I97a28379b1a9ca3daa875edbcd5213673ca138d0 Reviewed-on: https://go-review.googlesource.com/82115Reviewed-by: Russ Cox <rsc@golang.org>
-
Russ Cox authored
Change-Id: Ie246756452cd872961aeb659b35297c229504a3c Reviewed-on: https://go-review.googlesource.com/81936Reviewed-by: Russ Cox <rsc@golang.org>
-
Russ Cox authored
Change-Id: Id6ced9a6c76131263041cdaf5ed17479be075fa6 Reviewed-on: https://go-review.googlesource.com/82075 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
-
Tobias Klauser authored
Change-Id: If16f069f410d043fd11864a4c1a7d54b5b4922d2 Reviewed-on: https://go-review.googlesource.com/82200Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Russ Cox authored
There are some basic tests in the packages implementing the hashes, but this one is meant to be comprehensive for the standard library as a whole. Most importantly, it locks in the current representations and makes sure that they do not change from release to release (and also, as a result, that future releases can parse the representations generated by older releases). The crypto/* MarshalBinary implementations are being changed in this CL to write only d.x[:d.nx] to the encoding, with zeros for the remainder of the slice d.x[d.nx:]. The old encoding wrote the whole d.x, but that exposed an internal detail: whether d.x is cleared after a full buffer is accumulated, and also whether d.x was used at all for previous blocks (consider 1-byte writes vs 1024-byte writes). The new encoding writes only what the decoder needs to know, nothing more. In fact the old encodings were arguably also a security hole, because they exposed data written even before the most recent call to the Reset method, data that clearly has no impact on the current hash and clearly should not be exposed. The leakage is clearly visible in the old crypto/sha1 golden test tables also being modified in this CL. Change-Id: I4e9193a3ec5f91d27ce7d0aa24c19b3923741416 Reviewed-on: https://go-review.googlesource.com/82136 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
-
Russ Cox authored
String method comments should explain what they do, not that they are attempting to implement fmt.Stringer. Change-Id: If51dd1ff2f0c2f9ef9dca569bfa0c3914be2e8fe Reviewed-on: https://go-review.googlesource.com/82081 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Russ Cox authored
The docs make it seem like they are all things a single object would implement. That's true of Driver and DriverContext, but Connector is really something else. Attempt to clarify. Change-Id: I8fdf1cff855a0fbe37ea22720c082045c719a267 Reviewed-on: https://go-review.googlesource.com/82082 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
-
Ian Lance Taylor authored
Updates #22961 Change-Id: Ib2f41aefb4f6470598d8637611da5491156ea840 Reviewed-on: https://go-review.googlesource.com/82015Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Russ Cox authored
Go 1.10 is adding new API MarshalPKCS1PublicKey and ParsePKCS1PublicKey for converting rsa.PublicKeys. Even though we'd prefer that users did not, check that if users call asn1.Marshal and asn1.Unmarshal directly instead, they get the same results. We know that code exists in the wild that depends on this. Change-Id: Ia385d6954fda2eba7da228dc42f229b6839ef11e Reviewed-on: https://go-review.googlesource.com/82080 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Russ Cox authored
Originally these routines could not fail except by returning errors from the underlying writer. Then we realized that header keys containing colons needed to be rejected, and we started returning an error from Encode. But that only happens after writing a partial PEM block to the underlying writer, which is unfortunate, but at least it was undocumented. CL 77790 then documented this unfortunate behavior. Instead of documenting unfortunate behavior, fix it. Change-Id: Ic7467a576c4cecd16a99138571a1269cc4f96204 Reviewed-on: https://go-review.googlesource.com/82076 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-