# Bug in NetOS 6.1 BSP - SPI drivers

**URL:** <https://forums.digi.com/t/bug-in-netos-6-1-bsp-spi-drivers/5171>\
**Category:** NET+OS\
**Created:** [August 11, 2004, 2:08pm UTC](https://forums.digi.com/t/bug-in-netos-6-1-bsp-spi-drivers/5171 "2004-08-11T14:08:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Adrian](https://forums.digi.com/u/Adrian)\
**Post date:** [August 11, 2004, 2:08pm UTC](https://forums.digi.com/t/bug-in-netos-6-1-bsp-spi-drivers/5171/1 "2004-08-11T14:08:10Z")

</div>

In source file “netos\_spi.c”, function netos\_spiioctl has the last parameter char\* arg. There is a local parameter int\_arg which is type int\*. The int\_arg is filled with the value of arg casted to int\*. As the space reserved in memory was one byte space (for char) when reading the value as an integer you will get extra bytes from other variables. Worse, if you try to write to that address you can mess other variables.
