NordicPlayground / nRF51-ble-bcast-mesh

Other
323 stars 121 forks source link

out of bound access of vectors #91

Open victorpasse opened 8 years ago

victorpasse commented 8 years ago

In a lot of places you are doing something like this: if (index > RBC_MESH_PACKET_POOL_SIZE) return 0; return g_packet_refs[index]; it should be index >= RBC_MESH_PACKET_POOL_SIZE

You should run a linting tool on your code an fix all these errors.

trond-snekvik commented 8 years ago

Thanks for the heads up, I'll see what I can do.