Menu

#24 TSPI_lineGetDevCaps() returns wrong dwLineNameSize

open
1-Blocking (6)
9
2012-02-09
2011-11-03
Powelly
No

V1.8.2 of ActivaTSP has a bug where the function TSPI_lineGetDevCaps() returns a wrong dwLineNameSize.
The function stores the total size of the szLineName array, instead of populating the dwLineNameSize variable with the actual length of the string contained within the array.

This causes problems when using the ActivaTSP device from languages that do not use null terminated strings.
It affects both the ATAPI C# library and also the Tapi2Lib C# library.
Both the above libraries will throw an exception during initialization when ActivaTSP is installed.

The attached patch fixes the problem, by filling the dwLineNameSize variable with the correct length of the string contained within szLineName.

Discussion

  • Powelly

    Powelly - 2011-11-03

    Fix patch file

     
  • activatsp

    activatsp - 2012-02-09
    • priority: 5 --> 9
    • assigned_to: nobody --> activatsp
    • status: open --> pending
     
  • activatsp

    activatsp - 2012-02-09
    • status: pending --> open
     

Log in to post a comment.