]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: fix infinite recursion caused by ignoring recursive type
authorRob Pike <r@golang.org>
Wed, 15 Apr 2015 16:30:45 +0000 (09:30 -0700)
committerRob Pike <r@golang.org>
Mon, 1 Jun 2015 18:42:29 +0000 (18:42 +0000)
commitbc8e129366ebc4244026884319c68c31c3127853
tree01502075734212f6b161bec4f320de2419af06c7
parentdf2809f04e6df31e2b36bac08704d8f27e04a0ad
encoding/gob: fix infinite recursion caused by ignoring recursive type

This was a simple oversight: the algorithm to handle recursive types
needed to be applied to the ignore-item case as well.

Fixes #10415.

Change-Id: I39ef31cad680ab8334e141f60d2f8707896785d1
Reviewed-on: https://go-review.googlesource.com/8942
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/encoding/gob/decode.go
src/encoding/gob/encoder_test.go