mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
One spurious alert was removed, one missing alert was added, and some source locations changed.
17 lines
262 B
Go
17 lines
262 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"main/protos/query"
|
|
)
|
|
|
|
func testProtobuf() {
|
|
password := "P@ssw0rd" // $ Source
|
|
|
|
query := &query.Query{}
|
|
query.Description = password
|
|
|
|
log.Println(query.GetDescription()) // $ Alert
|
|
log.Println(query.GetId()) // OK
|
|
}
|