Csound Csound-dev Csound-tekno Search About

[Cs-dev] max length of string

Date2009-06-19 09:39
FromOeyvind Brandtsegg
Subject[Cs-dev] max length of string
Hello,

Would it be ok to increase the max length of a string variable in Csound ?
See attached csd, a long string causes a strcpy buffer overflow.

I would need long strings to create lists of parameter names, where a
macro should be called with parameter name as an argument.
I'm parsing the string with another macro, popping each parameter name
one by one from the long string.
This way, it will be possible to do simple iteration on lists in Csound.

Oeyvind

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-06-19 09:40
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] max length of string
AttachmentsstringLength.csd  None  None  
... and forgot the attachment, sorry

2009/6/19 Oeyvind Brandtsegg :
> Hello,
>
> Would it be ok to increase the max length of a string variable in Csound ?
> See attached csd, a long string causes a strcpy buffer overflow.
>
> I would need long strings to create lists of parameter names, where a
> macro should be called with parameter name as an argument.
> I'm parsing the string with another macro, popping each parameter name
> one by one from the long string.
> This way, it will be possible to do simple iteration on lists in Csound.
>
> Oeyvind
>

Date2009-06-22 22:20
Frommatt ingalls
SubjectRe: [Cs-dev] max length of string
AttachmentsNone  None  
more than 10,000 
commandline flag:

-+max_str_len=integer

(min: 10, max: 10000) Maximum length of string variables + 1; defaults to 256 allowing a length of 255 characters. The length of string constants is not limited by this parameter.



On Jun 19, 2009, at 1:39 AM, Oeyvind Brandtsegg wrote:

Hello,

Would it be ok to increase the max length of a string variable in Csound ?
See attached csd, a long string causes a strcpy buffer overflow.

I would need long strings to create lists of parameter names, where a
macro should be called with parameter name as an argument.
I'm parsing the string with another macro, popping each parameter name
one by one from the long string.
This way, it will be possible to do simple iteration on lists in Csound.

Oeyvind

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2009-06-23 11:36
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] max length of string
Aha, many thanks.
Oeyvind

2009/6/22 matt ingalls :
> more than 10,000 commandline flag:
> -+max_str_len=integer
>
> (min: 10, max: 10000) Maximum length of string variables + 1; defaults to
> 256 allowing a length of 255 characters. The length of string constants is
> not limited by this parameter.
>
> On Jun 19, 2009, at 1:39 AM, Oeyvind Brandtsegg wrote:
>
> Hello,
>
> Would it be ok to increase the max length of a string variable in Csound ?
> See attached csd, a long string causes a strcpy buffer overflow.
>
> I would need long strings to create lists of parameter names, where a
> macro should be called with parameter name as an argument.
> I'm parsing the string with another macro, popping each parameter name
> one by one from the long string.
> This way, it will be possible to do simple iteration on lists in Csound.
>
> Oeyvind
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> matt ingalls
> development@gvox.com
>
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net