tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Brainy: some bugs



On Fri, Aug 28, 2015 at 11:17:24AM +0200, Maxime Villard wrote:
 > _11/ UNINITIALIZED VAR: sys/dev/ic/sgec.c
 > _12/ USE-AFTER-FREE: sys/arch/mips/alchemy/dev/aupcmcia.c
 > _13/ MEMORY LEAK: sys/dev/ic/smc91cxx.c
 > _15/ MEMORY LEAK: sys/arch/acorn26/ioc/arcpp.c
 > _17/ MEMORY LEAK: sys/dev/ic/gem.c
 > _18/ MEMORY LEAK: sys/dev/ic/rrunner.c
 > _19/ USE-AFTER-FREE: sys/dev/ic/rrunner.c

These are all straightforward and now fixed.

 > _20/ MEMORY LEAK: sys/dev/spi/spiflash.c

It looks to me like this code leaks a scratch buffer on every write
operation, not just on the path cited. Am I missing something?

("save" in spiflash_process_write)

 > _14/ UNINITIALIZED VAR: sys/compat/linux/common/linux_futex.c

I have no idea what on earth this code's supposed to be doing, but
it's obviously wrong the way it is.

 > _21/ USE-AFTER-FREE: sys/dev/ic/daic.c

This is also obviously wrong but it isn't clear what it should be
changed to.

 > _09/ DOUBLE RUNTIME BRANCH: sys/arch/arm/arm/cpufunc.c
 > _10/ MEMORY LEAK: sys/net/if_ieee1394subr.c
 > _16/ MEMORY LEAK: sys/dev/pci/cxgb/cxgb_l2t.c

No opinion on these.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index