Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Odd mmap() problem.



On Mon, 18 Jul 2005 14:07:43 +1000 (EST)
Jim Breen <Jim.Breen@example.com> wrote:

> My WWWJDIC server is barfing reporting "Out of space" (via strerror) as
> it fails an mmap() call. It occurs in the following situation:
> 
> - just for one user (Michael) living in Nagoya;
I guess it means mmap returning with -1 and ENOMEM. I hardly see a
connection with the "symptoms". If this only happens for one user, it's
possible that you have a buffer overflow somewhere else in your C cgi
code. There are tools for detecting these, fedora core 4 comes with
builtin support in gcc+glibc for this.

> so a made a testbed version in when I popped a sprintf/strcat after each
These aren't very safe to use. Escpecially in a web based environment.

> Now I'm exploring overflowing strings and the like
If this isn't the cause it won't hurt to fix these otherwise your servers
might get 0wn3d sometime ;)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links