You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
Hi,
this is a great library to use with Raspberry. I really appreciate your effort.
There is a small bug in code which causes array out of bounds. While checking the Pin cache size you are comparing adress with array length. Instead it should be length-1 as the index cannot be 100 this caused an issue in my code.
java.lang.ArrayIndexOutOfBoundsException: 100
at com.pi4j.io.gpio.GpioProviderBase.getPinCache(GpioProviderBase.java:88)
at com.pi4j.io.gpio.GpioProviderBase.export(GpioProviderBase.java:119)
at com.pi4j.io.gpio.GpioProviderBase.export(GpioProviderBase.java:100)
at com.pi4j.io.gpio.impl.GpioPinImpl.export(GpioPinImpl.java:158)
I would like also to ask is there any plan for release 1.2?
The text was updated successfully, but these errors were encountered:
Hi,
this is a great library to use with Raspberry. I really appreciate your effort.
There is a small bug in code which causes array out of bounds. While checking the Pin cache size you are comparing adress with array length. Instead it should be length-1 as the index cannot be 100 this caused an issue in my code.
java.lang.ArrayIndexOutOfBoundsException: 100
at com.pi4j.io.gpio.GpioProviderBase.getPinCache(GpioProviderBase.java:88)
at com.pi4j.io.gpio.GpioProviderBase.export(GpioProviderBase.java:119)
at com.pi4j.io.gpio.GpioProviderBase.export(GpioProviderBase.java:100)
at com.pi4j.io.gpio.impl.GpioPinImpl.export(GpioPinImpl.java:158)
I would like also to ask is there any plan for release 1.2?
The text was updated successfully, but these errors were encountered: