That looks good to me... But it's a VERY scary USB-device name... A big
buffer overflow occurred in the source since
"003/004-04fa-249818DE12400000063" doesn't fit in the stack-allocated
buffer with size 16. On Linux 2.4-kernels and 2.6-kernels the id looks
like "003/001", so I thought 16 bytes would be enough.

------
static int DS9490_detect_low( const struct parsedname * const pn ) {
    char name[16] ;
                    strcpy(name, bus->dirname) ;
                    strcat(name, "/") ;
                    strcat(name, dev->filename) ;
 LEVEL_DEFAULT("Set DS9490 [%s] unique id to adapter [%s]", id, name);
-----
-->  Set DS9490 [818DE12400000063] unique id to adapter
[003/004-04fa-249818DE12400000063]


I will look around in the source and make some changes and hopefully
that buffer overflow caused all problem for you. I'll tell you when it's
time for you to try again.

/Christian



On Thu, 2005-10-13 at 19:59 -0500, Ross Cathriner wrote:
> ./owhttpd -p 3001 -u --error_level=4 INFO: PARSENAME path= ERR: Opened
> USB DS9490 adapter at 003/004-04fa-2490-ff-ff. : Unknown error: 0
> INFO: DS9490_setup_adapter: done INFO: DS9490_overdrive() INFO:
> DS9490_reset: ok INFO: Found device [207EE80000000080] on adapter
> [003/004-04fa-249207EE80000000080] INFO: DS9490_reset: ok INFO: Found
> device [10E41A140008008F] on adapter
> [003/004-04fa-24910E41A140008008F] INFO: DS9490_reset: ok INFO: Found
> a DS1420 device [818DE12400000063] INFO: Found device
> [818DE12400000063] on adapter [003/004-04fa-249818DE12400000063] INFO:
> Set DS9490 [818DE12400000063] unique id to adapter
> [003/004-04fa-249818DE12400000063]



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to