]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
i2c(8): uninitialized variable (UNINIT).
authorpfg <pfg@FreeBSD.org>
Fri, 13 May 2016 02:58:11 +0000 (02:58 +0000)
committerpfg <pfg@FreeBSD.org>
Fri, 13 May 2016 02:58:11 +0000 (02:58 +0000)
commitbfe13aa913c5751ecfab4b6eccf288f5386f2ed7
tree757c3594df766e4e5606e0a126b2b37d6779ca18
parentf11b38fe039eb9b42196fe8d5e3bf27b4fcd4304
i2c(8): uninitialized variable (UNINIT).

If i2c_opt.width is somehow zero, the bufsize will be left uninitialized
and make cause trouble later on.

CID: 1331549
usr.sbin/i2c/i2c.c