centralnic / mod_whoisng

An Apache module to implement a WHOIS/NICNAME (RFC 3912) server.
Other
7 stars 2 forks source link

Fix for CentOS 7 #2

Open ashar9 opened 3 years ago

ashar9 commented 3 years ago

Fails with segment fault on CentOS 7 with httpd 2.2x and httpd 2.4x

Fix: Change line 68 of mod_whoisng.c int len=1; Change to apr_size_t len=1;

Recompile and restart httpd

gbxyz commented 3 years ago

Fixed!

ashar9 commented 3 years ago

Also, mod_whoisng does not work with Apache 2.2.4x (on Centos 7) for certain inputs. This instance of apache httpd splits the input into multiple buckets or arbitrary lengths. For example, if whois domain is more than 24 bytes it is split into two heap buckets inside apr_bucket_brigade, which is not handled properly by mod_whoisng and therefore results in Error 400 Bad Request response output.

I have fixed this for my use, and will be happy to share if interested.

Thank you

-ashar

On Mon, Jul 12, 2021 at 6:36 AM Gavin Brown @.***> wrote:

Fixed!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/centralnic/mod_whoisng/issues/2#issuecomment-878285851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2HDKL7547Q5XTBAOTVJNTTXLVWJANCNFSM5AEDMX7Q .

gbxyz commented 3 years ago

@ashar9 please do!