haineb-zz / ASLHackfest

Adversarial Science Lab's repository for the DARPA SDR Hackfest
GNU Lesser General Public License v2.1
2 stars 4 forks source link

cull out of range #13

Closed haineb-zz closed 6 years ago

haineb-zz commented 6 years ago

oot@raspberrypi3-64:~/asl/ASLHackfest-debug/apps# ./run_one.py Postmaster initializing. Ctrl-C to stop. Egress queue culled from 15 to 8. Transmitting frame: 000012020087be00fe09eb0101000000000002035103032b5d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Exception in thread Thread-5: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/site-packages/asl_sdr_hackfest/protocols/network_layer_handler.py", line 89, in run self.egress_cull() File "/usr/lib/python2.7/site-packages/asl_sdr_hackfest/protocols/network_layer_handler.py", line 117, in egress_cull del(tmp_egress[target]) IndexError: list assignment index out of range

haineb-zz commented 6 years ago

fixed

MaxTracks commented 6 years ago

Looks like an off by one issue, [target - 1] should fix it if so.