logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Competitor for the most obscure bug in Ued. (Read 118 times)
ExpEM
Junior Member
**
Offline


Oldunreal member

Posts: 51
Location: New Zealand
Joined: Jan 20th, 2013
Gender: Male
Competitor for the most obscure bug in Ued.
Apr 12th, 2020 at 8:41am
Print Post  
Using a BrushBuilder, if you return BadParameters with a long enough string the last few characters garble. For me this happens at 4096 (16 * 256) char. I expect this is a hard coded limit.

Example code:

Code (C++)
Select All
class UedBreaker expands BrushBuilder;

var() int NumberOfChar;

function bool Build()
{
	return BadParameters(GenString(NumberOfChar));
}

function String GenString(int i)
{
	local string s;

	s = "A";
	while (Len(s)<i)
	{
		s = s$"A";
	}

	return(s);
}
 



Set NumberOfChar to anything over 4095.
  

Finaly signed up, been a fan for years...
Back to top
 
IP Logged
 
[]KAOS[]Casey
Developer Team
Betatester
Offline


nedm

Posts: 3182
Joined: Aug 7th, 2011
Gender: Male
Re: Competitor for the most obscure bug in Ued.
Reply #1 - Apr 12th, 2020 at 5:14pm
Print Post  
you're right, it's some hardcoded nonsense. I never understood why it was like that. it's been like that for ages -- iirc I was told it was a string copy function , and probably set up that way for speed
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo