Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for length$extension (0.19 sec)

  1. src/cmd/compile/internal/staticdata/data.go

    	var symname string
    	if len(s) > 100 {
    		// Huge strings are hashed to avoid long names in object files.
    		// Indulge in some paranoia by writing the length of s, too,
    		// as protection against length extension attacks.
    		// Same pattern is known to fileStringSym below.
    		h := notsha256.New()
    		io.WriteString(h, s)
    		symname = fmt.Sprintf(stringSymPattern, len(s), shortHashString(h.Sum(nil)))
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top