Raised This Month: $12 Target: $400
 3% 

Solved Buffer overflow caused by using set_task incorrectly


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-27-2021 , 22:26   Buffer overflow caused by using set_task incorrectly
Reply With Quote #1

Code:
L 11/28/2021 - 02:54:52: Invalid player id 100
L 11/28/2021 - 02:54:52: [AMXX] Run time error 10 (plugin "adminhelp.amxx") (native "client_print") - debug not enabled!
L 11/28/2021 - 02:54:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-02-2021 at 03:36.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-28-2021 , 01:04   Re: adminhelp error invalid id
Reply With Quote #2

Post some more info.

What else are you running on your server?
Which specific command caused the error? amx_help or amx_searchcmd

I've used this command for years and have never had an issue.
__________________
Bugsy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-28-2021 , 04:51   Re: adminhelp error invalid id
Reply With Quote #3

One would assume a coder would know to always enable debug mode when posting error logs
__________________
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-28-2021 , 07:02   Re: adminhelp error invalid id
Reply With Quote #4

You clearly tried to send a chat message to a game entity other than a player.
__________________









Last edited by CrazY.; 11-28-2021 at 07:03.
CrazY. is offline
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 11-28-2021 , 07:47   Re: adminhelp error invalid id
Reply With Quote #5

Can you give more info to understand where is the problem ?
__________________
<b>IP : <font color=Red>93.115.53.168:27017</font></b>
<b>Founder : <font color=Cyan>YusoChan-</font></b>
Yusochan is offline
thEsp
BANNED
Join Date: Aug 2017
Old 11-28-2021 , 16:44   Re: adminhelp error invalid id
Reply With Quote #6

Quote:
Originally Posted by Yusochan View Post
Can you give more info to understand where is the problem ?
Other than repeating #2, I'm really curious to know how would you help them?

@OP if you haven't modified the script then it must be a problem with the game itself, because client_print is only called inside @Task_DisplayMessage with the index passed from client_putinserver.

Last edited by thEsp; 11-28-2021 at 16:50.
thEsp is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-29-2021 , 07:19   Re: adminhelp error invalid id
Reply With Quote #8

This is caused by a memory leak, but i am not sure why the player id is 100 and what causing the leak.

Quote:
Originally Posted by HamletEagle View Post
One would assume a coder would know to always enable debug mode when posting error logs
Trust me debugging won't help in this situation.

Quote:
Originally Posted by Bugsy View Post
Post some more info.

What else are you running on your server?
Which specific command caused the error? amx_help or amx_searchcmd

I've used this command for years and have never had an issue.
I am running a bunch of plugins, now i have some questions about freeing the handles, destroying arrays and tries, when creating a trie or an array or even a newmenu do i really need to destroy them in plugin end? Because I've heard they're destroyed inside the amxmodx module meaning that i don't really need to destroy them in plugin.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-29-2021 at 08:30.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-29-2021 , 10:19   Re: adminhelp error invalid id
Reply With Quote #9

I just found a bug in pluginmenu.sma when you've opened the cvars menu and then you disconnected the menu handler will be called with item (3rd param) equal to MENU_EXIT then a newmenu( pluginsmenu ) will be created but the displayment of the menu won't work because the player had already left the server.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-29-2021 at 10:20.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-29-2021 , 20:13   Re: adminhelp error invalid id
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
This is caused by a memory leak
Where is your proof for claiming such a thing?
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode