sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
332 stars 174 forks source link

Array index out-of-bounds (index -1, limit 256) #696

Open hks27d opened 3 years ago

hks27d commented 3 years ago

What are the steps to reproduce this issue?

  1. Install metamod, sourcemod and sourcebans and connect sourcebans to the website
  2. NOW Everything's fine, every ban/mute shows up in the online banlist

What happens?

I found many error logs in sourcemod/logs for many times. The plugin outputs error messages like the one attached below. Database is connecting OK, the website shows all the bans and everything is fine. But I see the error logs sometimes in sourcemod/logs.

What were you expecting to happen?

No error.

Any logs, error output, etc.?

L 09/13/2020 - 21:07:30: SourceMod error session started L 09/13/2020 - 21:07:30: Info (map "de_mirage") (file "/home/gofairside/serverfiles/csgo/addons/sourcemod/logs/errors_20200913.log") L 09/13/2020 - 21:07:30: [SM] Exception reported: Array index out-of-bounds (index -1, limit 256) L 09/13/2020 - 21:07:30: [SM] Blaming: sbpp_main.smx L 09/13/2020 - 21:07:30: [SM] Call stack trace: L 09/13/2020 - 21:07:30: [SM] [1] Line 489, .\sbpp_main.sp::CommandBanIp L 09/13/2020 - 21:30:00: Error log file session closed.

Any other comments?

Please fix this bug as sometimes I find error logs in sourcemod/logs.

What versions of software are you using?

Operating System: Debian 9, all updates and upgrades already done to all dependencies SourceBans++ Version: 1.6.3 SourceMod Version: 1.10.0.6492 MetaMod Version: 1.10.7-dev

rumblefrog commented 3 years ago

Would you mind providing the example command you used?