Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://xmm.vilspa.esa.es/pipermail/sas-uploads/2013-February/014045.html
Дата изменения: Wed Feb 27 19:01:07 2013 Дата индексирования: Sat Mar 1 09:30:54 2014 Кодировка: Поисковые слова: http astrokuban.info astrokuban |
Package: pedal-1.32.tgz - 59359 B MD5: f949e9f03558ee13aa92b9097452fe2e Uploaded by: Edward Chapin <echapin@sciops.esa.int> Accepted on: Wed Feb 27 14:10:08 2013 UTC The most recent ChangeLog entry says: Version 1.32 - 2013-02-27 (EC) ------------ + There is a major bug (SPR 7089) regarding handling of bool8, int8, and dstring types: the DAL_C_lib_wrap.c functions ptrset and ptrvalue assumed that pointers to all of these types (which are defined in machine_specific_types.h from the DAL as char) should be handled as NULL-terminated strings. This would lead to sporadic invalid memory writes when, for example, setting values in an int8 column. This file is automatically generated by a very old version of swig using a now deprecated pointer.i library, so it was decided to edit DAL_C_lib_wrap.c directly. + DAL_C_lib.c: the "char" type is now handled as an array of 1-byte values by ptrset and ptrvalue to fix the bool8 and int8 cases. A new type "dstringPtr" can now be specified by the caller (along with a length argument) to correctly handle the dstring case. + utils.pm and ptr_manipulator.pm have been altered to handle the passing of the type and length arguments to DAL_C_lib.c, and to ensure that the length of a string value does not exceed that of the cell into which it will be inserted. When reading a cell, precisely the cell width number of characters is read. + string_column.t, the test script for writing/reading string data to a column was updated to use multiple characters