ntruchsess / perl-firmata

Perl implementation of the firmata client. Originally authored by Aki Mimoto (amimoto) this repository was transfered to Norbert Truchsess (ntruchsess) in 02/2013. Anybody willing to contribute is very wellcome! Please submitt pull-requests against branch 'dev'
http://www.firmata.org
Other
21 stars 11 forks source link

Use of uninitialized value in addition (+) at FHEM/lib/Device/Firmata/Protocol.pm line 206. #20

Closed ntruchsess closed 9 months ago

ntruchsess commented 10 years ago

https://github.com/ntruchsess/perl-firmata/blob/master/lib/Device/Firmata/Protocol.pm#L206 .... my $bytes = ( $MIDI_DATA_SIZES->{$command} || $MIDI_DATA_SIZES->{ $buffer->[0] } ) + 1; .... $MIDI_DATA_SIZES->{ $buffer->[0] } is uninitialized for 0xf..-values not listed in $MIDI_DATA_SIZES resulting in this error if corrupt data is received.

ntruchsess commented 9 months ago

outdated