Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #311 from nezix/patch-1
Browse files Browse the repository at this point in the history
Fix buffer overflow in VOIP
  • Loading branch information
NFMynster authored Aug 14, 2019
2 parents cdc7b33 + 57ef483 commit 73cbb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ForgeUnity/Assets/BeardedManStudios/Modules/VOIP/VOIP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private byte[] ToByteArray(List<float> sampleList)

private float[] ToFloatArray(BMSByte data)
{
int len = (data.Size - 1) / 4;
int len = data.Size / 4;
float[] floatArray = new float[len];

for (int i = 0; i < data.Size - 1; i += 4)
Expand Down

0 comments on commit 73cbb73

Please sign in to comment.