Menu

#9 max address error

closed-fixed
nobody
None
5
2004-06-27
2004-06-25
Anonymous
No

lib/ibutil.c

//line 181
int ibGetDescriptor( ibConf_t p )
{
int retval;

/* XXX should go somewhere else XXX check
validity of values */
if( p.settings.pad > gpib_addr_max ||
p.settings.sad > gpib_addr_max ) // CORRECTED CODE HERE.
{
setIberr( ETAB );
return -1;
}

retval = insert_descriptor( p, -1 );
if( retval < 0 )
return retval;

return retval;
}

when trying to access a device on gpib address #30 you
get Table Error. Was found that gpib_addr_max was being
compared with a >= instead of a > in function
ibGetDescriptor. Changing this fixed this error, but i
don't know if it produces any others.

bryan.thomas@trw.com

Discussion

  • Frank Mori Hess

    Frank Mori Hess - 2004-06-27

    Logged In: YES
    user_id=129750

    Thanks for the bug report/fix.

     
  • Frank Mori Hess

    Frank Mori Hess - 2004-06-27
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.