Giter Club home page Giter Club logo

go-dmidecode's People

Contributors

0x1un avatar doublewe avatar ktdynamic avatar luhuaei avatar oldtree avatar yumaojun03 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

doublewe

go-dmidecode's Issues

GetString存在数组越界问题

smbios/structure.go
异常位置:func (s *Structure) GetString(offset int) string
当s为如下值时, 获取SerialNumaer(offset=12), .Strings[index-1]会数组越界

s := &smbios.Structure{
		Header: smbios.Header{
			Type: 4,
			Length: 48,
			Handle: 32,
		},
		Formatted: []byte{1,3,1,2,17,15,144,0,255,251,139,23,3,138,100,0,228,12,
			252,8,65,55,29,0,30,0,31,0,4,5,6,32,32,64,252,0,1,0,32,0,32,0,64,0},
		Strings: []string{
			"CPU0",
			"Chengdu Hygon",
			"Hygon C86 7291 32-core Processor",
		},
	}

PS: 在浪潮的设备上发现了这个问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.