<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - By using the Mex API in Scilab, it is impossible to include a structure (created"
href="http://bugzilla.scilab.org/show_bug.cgi?id=6886">bug 6886</a>
<br><br>
---------- Bug Summary ----------- <br>By using the Mex API in Scilab, it is impossible to include a structure (created <br><br>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">URL</td>
<td>No error message but I have a buffer overflow. For example:
//
md = btkGetMetaData(acq,'POINT','LABELS');
-->md.info.format
ans =
n000g000/000S000c000i000 l000a000b000/000b000t000 k000/000m000a000c000r000
o000s000/000100010001000 200020002000200020002000 200020002000200020002000
200020002000200020002000 200020002000200020002000 2000200020002000btkMetaD
ataInfo W0001000 100040000000000000k*0000 000*0000000000**QX0*a000
1000100000001000g000/000 U000s000e000r000s000/000 A000l000z000a000t000h000
a000r0000000e000t000S000 C000I000/000m000o000d000 u000l000e000s000/000h000
e000l000p000t000o000o000 l000s000/000m000a000c000 r000o000s000/000k0001000
40004000600080009000a000 a000d000d000d000d000d000 e000e000e000e000e000e000
e000e000e000e000e000l000 l000l000l000l000l000add_ help_chapter add_
module_help_chapter apro pos chec k_help clea
n_help del_ help_chapter del_ module_help_chapter extr
act_help_examples find _links help help
_from_sci help _skeleton mane dit xmlf
iletohtml xmlt ochm xmlt oformat xmlt
ohtml xmlt ojar xmlt opdf xmlt
ops e000 o000S000C000I000/000m000 o000d000u000l000e000s000
-->md.info
ans =
format: [3x2 sparse]
//
The result should be 'Char'. There is no error under Matlab with this code.
I don't know if it is related but the type of the variable 'format' is known as a sparse matrix (instead of char) and in the Mex API code (mexlib.c), the function mxCreateSparse is defined just before the function mxCreateString.
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>vincent.couvert@scilab-enterprises.com
</td>
<td>bugzilla.admin@scilab.org
</td>
</tr></table>
<p>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>