safe_strcpy errors

Gerald Carter gcarter at valinux.com
Sun Dec 3 02:06:28 GMT 2000


Torsten Curdt wrote:
> 
> ERROR: string overflow by 5 in safe_strcpy 
> [/guitar guitars tablature music mp3 olga
> percussio]

Currently one of the issues that needs to be
rewritten in Samba is the static nature of strings 
(fstrings & pstrings).  Both are declared as char
arrays with a fixed length.  The strcpy, strcat, etc...
functions are wrapped as to prevent buffer overflows.
The problem is things like what you are experiencing.
(although this could be caused by RPC bugs in other 
parts of the code). 

In order to give you an honest answer, we would need 
to see level 10 debug logs at the time of the error.








Cheers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )




More information about the samba-technical mailing list