21.01.2014, 05:01
Streamer is OK as it doesn't use these functions. GDK 3.3+ based plugins are fine too as I fixed this internally. Can't say about other plugins, the ones that pass strings or arrays to callbacks are probably affected by this.
Even the server itself can suffer from it - I saw at least one crash report related to this bug. It's pretty easy to trigger:
The page is clearly bigger than 4 KB, so amx_PushString() will try to write past the top of the stack because it'll think it's OK as amx_Allot() returned no error, which would obviously result in a bad memory access.
Even the server itself can suffer from it - I saw at least one crash report related to this bug. It's pretty easy to trigger:
pawn Код:
#include <a_http>
#include <a_samp>
forward MyHttpResponse(index, response_code, data[]);
main() {
HTTP(1, HTTP_GET, "www.******.com/search?q=atata", "", "MyHttpResponse");
}
public MyHttpResponse(index, response_code, data[]) {
printf("Reponse was %d", response_code);
}