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

Re: [Bacula-devel] "buffer overflow detected" error on fedora distributions.

On Mon, 2008-01-28 at 19:43 -0500, Dan Langille wrote:
> Michael Lausch wrote:
> > The error is due to the new (well ~ core 5) buffer overflow checking
> > implemented by gcc and glibc. _FORTIFY_SOURCE=2  activates it. what
> > happens can be read in detail at
> > http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html. but basically
> > the error is a buffer overflow check in parse.c in the bacula library.
> parse.c?  I can't find any parse.c in bacula.

sorry, typo it is src/lib/parse_conf.c


> As previously mentioned, if this is a Fedora specific issue, how can the 
> Bacula project help?

fix the bug? or at least accept patches which fix this bug?
And it's not a fedora issue, it's a  redhat (and therefore CentOS)
issue. See

To fix this bug/wart the res_all definition has to be changed to #
extern CURES *res_all;
extern CURES res_all;
and of course fix memeory allocation/deallocation and change access to
struct members from "res_all.x" to "res_all->x".

> In short, we're willing to help, but at present, we have absolutely no idea 
> what you're talking about.  :)

i'm talkling about the error messages like:

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Bacula-devel mailing list

This mailing list archive is a service of Copilotco.