Kern Sibbald wrote: > Hello, > > Yesterday was an unusually good day for bugs (others may call it a bad day). > Two Bacula crashes showed up in the Bacula regressions. Thanks regression > testers. :-( The first one is an SD race condition. It was automatically > identified by Eric's thread deadlock detection code -- good going Eric. I > have not yet fixed it -- it will need more reflection as it is a non-trivial > conceptial problem. > > The second one was in bstrncat() -- really ugly, because it trashes memory > under certain conditions :-( This one should now be fixed (it is in the git > repo). We will probably back port it. This one is a lesson in how Kern has > misunderstood the Unix definition of strncat() for almost 40 > years!!! :-( :-( >
Out of curiosity, what was the misunderstanding? Is it that strncat() can write n+1 chars instead of n (like the other strn* functions)? ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
