SoftwareGuy / Ignorance

Ignorance utilizes the power of ENet to provide a reliable UDP networking transport for Mirror Networking.
Other
248 stars 31 forks source link

fix: preserve message length #73

Closed paulpach closed 3 years ago

paulpach commented 3 years ago

My server was sending: EF-03-BC-06-B9-6A-6A-48-D2-F8-3D-2B-EA-99-A9-18-65-CF-30-77-D4-3D-F7-15-91-71-FD-52-65-BC-5E-7B-A7-4A-33-5E-58-2C-72-16-63-59-E4-99-61-A4-37-0E-75-5C-04-A0-72-65-D5-EC-EB-31-65-9D-01-95-5F-7F-E8-C1-C5-AF-0B-02-62-C8-DF-99-A2-E8-94-78-3D-FF-76-16-16-B8-56-DB-21-67-F3-2D-41-14-6B-8E-76-A7

my client was receiving this: EF-03-BC-06-B9-6A-6A-48-D2-F8-3D-2B-EA-99-A9-18-65-CF-30-77-D4-3D-F7-15-91-71-FD-52-65-BC-5E-7B-A7-4A-33-5E-58-2C-72-16-63-59-E4-99-61-A4-37-0E-75-5C-04-A0-72-65-D5-EC-EB-31-65-9D-01-95-5F-7F-E8-C1-C5-AF-0B-02-62-C8-DF-99-A2-E8-94-78-3D-FF-76-16-16-B8-56-DB-21-67-F3-2D-41-14-6B-8E-76-A7-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

SoftwareGuy commented 3 years ago

Nice find, probably due to how ArrayPool works, and I remember they said that the array can be bigger than requested size.