ETSI's Bug Tracker - Part 06: TTCN-3 Control Interface
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0000830 | Part 06: TTCN-3 Control Interface | Technical | public | 12-03-2007 16:11 | 06-12-2007 11:51

Reporter | Mateusz Pusz |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | major | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v3.3.1 (published 2008-04) | Fixed in Version | v3.3.1 (published 2008-04) |
Clause Reference(s) | 9
Source (company - Author) | Mateusz Pusz, Intel

Summary | 0000830: Lack of 'const' usage
Description | TCI interface does not use 'const' in its declarations.
Steps To Reproduce |

Additional Information

TCI does not define ANSI C language mapping to be as fast and safe as TRI does. Pointers are not used namely. The problem is that there are some pointers 'hidden' by its types i.e.: String = char *.
It is not safe. Vendor provided library can be easily crashed by user when accidentaly overwriting data pointed by 'String' type. Using 'const String' does not solve the problem because it defines 'char * const' which is different than 'const char *'.
It can be major library stability issue.

Tags | No tags attached.
Relationships |
Attached Files | CR_830_solution.doc (878,592) 03-12-2007 14:57 http://oldforge.etsi.org/mantis/file_download.php?file_id=1179&type=bug

Issue History
Date Modified | Username | Field | Change
12-03-2007 16:11 | Mateusz Pusz | New Issue |
12-03-2007 16:11 | Mateusz Pusz | Clause Reference(s) | => 9
12-03-2007 16:11 | Mateusz Pusz | Source (company - Author) | => Mateusz Pusz, Intel
15-06-2007 19:11 | Stephan Schulz | Status | new => assigned
15-06-2007 19:11 | Stephan Schulz | Assigned To | => Ina Schieferdecker
15-10-2007 17:15 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => developer_u
17-10-2007 12:42 | user10 | Assigned To | developer_u => Thomas DeiÃŸ
18-10-2007 12:09 | Ina Schieferdecker | Target Version | => Edition 3.3.1 (not yet published)
03-12-2007 14:57 | Thomas DeiÃŸ | Note Added: 0004238 |
03-12-2007 14:57 | Thomas DeiÃŸ | File Added: CR_830_solution.doc |
03-12-2007 14:58 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Ina Schieferdecker
04-12-2007 16:35 | Ina Schieferdecker | Status | assigned => resolved
04-12-2007 16:35 | Ina Schieferdecker | Resolution | open => fixed
06-12-2007 11:51 | Ina Schieferdecker | Status | resolved => closed
06-12-2007 11:51 | Ina Schieferdecker | Note Added: 0004371 |
06-12-2007 11:51 | Ina Schieferdecker | Fixed in Version | => Edition 3.3.1 (not yet published)

Notes

(0004238)
Thomas DeiÃŸ
03-12-2007 14:57

In the TCI interface most of the parameters are passed as values, whereas in the TRI interface most of the parameters are passed by reference. Therefore the usage of 'const' does not make a real difference for the TCI. Therefore no change will be done. When checking the CR a couple of typographical errors have been found, these will be corrected.

(0004371)
Ina Schieferdecker
06-12-2007 11:51

Value as to be used - instead of TciValue. The in direction for parameters is removed for the C mapping.