Creole Ticket #34: creolehtml, slice ends past end of sequence

not sure about blocks progress, this may have happened because of defining a plugin in the manual.af without using it in code. but is a latent bug.

\eudoc\creole\creole.e:3846 in function creole_parse() 
slice ends past end of sequence (123773 > 123771) 
 
... called from \eudoc\creole\creolehtml.ex:613 in 
 procedure Generate() 
 
... called from \eudoc\creole\creolehtml.ex:843 in 
 procedure main() 
 
... called from \eudoc\creole\creolehtml.ex:856 
 
@3840	should be 
		lText &= repeat(' ', lPluginLength - (2 * length(vPluginList)) +2) 
 
lPos+2 is used as an index and can cause  
a slice ends past end of sequence  
 

not sure if the fix above is the right way to go, but it worked in this case

Details

Type: Bug Report Severity: Blocking Category: Bundled Utility
Assigned To: DerekParnell Status: Fixed Reported Release: r2756
Fixed in SVN #: 2799 View VCS: 2799 Milestone:

1. Comment by DerekParnell Sep 11, 2009

Will no longer crash when a plugin returns text less than two characters long.

Search



Quick Links

User menu

Not signed in.

Misc Menu