You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All arise from assuming that just because the program is well
typed, that the fmt.Sprintf call is valid, specifically:
1. don't assume sufficient call arguments;
2. don't assume portExpr.String() == Format(portExpr);
3. don't assume that if port is a constant, it's an integer.
4. don't transform a constant port kPort into a string "123"
since it loses the connection to the symbolic constant.
+ tests of all four
Change-Id: I7c6e448efe30065d1c82ed144382788e16c70acf
Reviewed-on: https://go-review.googlesource.com/c/tools/+/702895
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
0 commit comments