Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 123 for nul (0.03 sec)

  1. src/syscall/syscall_solaris.go

    		sa.raw.Path[i] = int8(name[i])
    	}
    	// length is family (uint16), name, NUL.
    	sl := _Socklen(2)
    	if n > 0 {
    		sl += _Socklen(n) + 1
    	}
    	if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) {
    		// Check sl > 3 so we don't change unnamed socket behavior.
    		sa.raw.Path[0] = 0
    		// Don't count trailing NUL for abstract address.
    		sl--
    	}
    
    	return unsafe.Pointer(&sa.raw), sl, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/os/file_windows.go

    	}
    	return newFile(h, name, "file")
    }
    
    func epipecheck(file *File, e error) {
    }
    
    // DevNull is the name of the operating system's “null device.”
    // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
    const DevNull = "NUL"
    
    // openFileNolog is the Windows implementation of OpenFile.
    func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
    	if name == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loadelf/ldelf.go

    	data []byte
    	err  error
    }
    
    func (a *elfAttributeList) string() string {
    	if a.err != nil {
    		return ""
    	}
    	nul := bytes.IndexByte(a.data, 0)
    	if nul < 0 {
    		a.err = io.EOF
    		return ""
    	}
    	s := string(a.data[:nul])
    	a.data = a.data[nul+1:]
    	return s
    }
    
    func (a *elfAttributeList) uleb128() uint64 {
    	if a.err != nil {
    		return 0
    	}
    	v, size := binary.Uvarint(a.data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:12:12 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/source.go

    		s.line++
    		s.col = 0
    	}
    
    	// fast common case: at least one ASCII character
    	if s.ch = rune(s.buf[s.r]); s.ch < sentinel {
    		s.r++
    		s.chw = 1
    		if s.ch == 0 {
    			s.error("invalid NUL character")
    			goto redo
    		}
    		return
    	}
    
    	// slower general case: add more bytes to buffer if we don't have a full rune
    	for s.e-s.r < utf8.UTFMax && !utf8.FullRune(s.buf[s.r:s.e]) && s.ioerr == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 19:25:46 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/imports/read.go

    func isIdent(c byte) bool {
    	return 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' || c == '_' || c >= utf8.RuneSelf
    }
    
    var (
    	errSyntax = errors.New("syntax error")
    	errNUL    = errors.New("unexpected NUL in input")
    )
    
    // syntaxError records a syntax error, but only if an I/O error has not already been recorded.
    func (r *importReader) syntaxError() {
    	if r.err == nil {
    		r.err = errSyntax
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  6. src/cmd/dist/imports.go

    func isIdent(c byte) bool {
    	return 'A' <= c && c <= 'Z' || 'a' <= c && c <= 'z' || '0' <= c && c <= '9' || c == '_' || c >= utf8.RuneSelf
    }
    
    var (
    	errSyntax = errors.New("syntax error")
    	errNUL    = errors.New("unexpected NUL in input")
    )
    
    // syntaxError records a syntax error, but only if an I/O error has not already been recorded.
    func (r *importReader) syntaxError() {
    	if r.err == nil {
    		r.err = errSyntax
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 21:45:30 UTC 2019
    - 6.3K bytes
    - Viewed (0)
  7. src/syscall/syscall_linux.go

    		sa.raw.Path[i] = int8(name[i])
    	}
    	// length is family (uint16), name, NUL.
    	sl := _Socklen(2)
    	if n > 0 {
    		sl += _Socklen(n) + 1
    	}
    	if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) {
    		// Check sl > 3 so we don't change unnamed socket behavior.
    		sa.raw.Path[0] = 0
    		// Don't count trailing NUL for abstract address.
    		sl--
    	}
    
    	return unsafe.Pointer(&sa.raw), sl, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. src/runtime/race.go

    			}
    
    			name := sf.name()
    			file, line := u.fileLine(uf)
    			if line == 0 {
    				// Failure to symbolize
    				continue
    			}
    			ctx.fn = &bytes(name)[0] // assume NUL-terminated
    			ctx.line = uintptr(line)
    			ctx.file = &bytes(file)[0] // assume NUL-terminated
    			ctx.off = pc - fi.entry()
    			ctx.res = 1
    			if u.isInlined(uf) {
    				// Set ctx.pc to the "caller" so the race detector calls this again
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/http/httpguts/httplex.go

    // that are not valid. While most of the values that can be encoded
    // will not alter header field parsing, carriage return (CR, ASCII
    // 0xd), line feed (LF, ASCII 0xa), and the zero character (NUL, ASCII
    // 0x0) might be exploited by an attacker if they are translated
    // verbatim. Any request or response that contains a character not
    // permitted in a header field value MUST be treated as malformed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/os/exec/exec.go

    	for n := len(env); n > 0; n-- {
    		kv := env[n-1]
    
    		// Reject NUL in environment variables to prevent security issues (#56284);
    		// except on Plan 9, which uses NUL as os.PathListSeparator (#56544).
    		if !nulOK && strings.IndexByte(kv, 0) != -1 {
    			err = errors.New("exec: environment variable contains NUL")
    			continue
    		}
    
    		i := strings.Index(kv, "=")
    		if i == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top