RTC Forums
November 01, 2024, 12:50:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Range check error (when turning range checking on) [MULTIPART/FORM-DATA]  (Read 5162 times)
Dany
RTC License++
*****
Posts: 69


« on: March 06, 2018, 06:42:42 PM »

Hello!

I have turned range-checking on Smiley

At 31105 (rtcInfo v9.22) in TRtcHttpValues.PrepareValues when "right" is going to be read from a file (the payload was large enough to have been written to a file by RTC) i get range check error when the payload is MULTIPART/FORM-DATA... and the string that the browser sent in this request request looked like this:

Code:
------WebKitFormBoundaryfB4CYPVuAwXZpY0q
Content-Disposition: form-data; name="versionComment"


------WebKitFormBoundaryfB4CYPVuAwXZpY0q

The requester indended the "versionComment" field to be blank.

So when we get down to line 31105

Code:
if right='' then
   begin
   StatusLine:=Read_File(ftemp,at,MyPos-at);

MyPos-at = 0 and i think that is what's triggering the exception in ReadFile (via Read_File and Read_FileEx).

1. Did the requester divert from some RFC? There's a lot of JS on the other side so might be possible. I have read some but cannot find the above chunk to be wrong.
2. Should i turn range-checking off? I'd rather like it on as i have found some small thingies in my code when on.
3. Could it be a bug?

TIA,

/Dany
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: March 06, 2018, 09:00:56 PM »

Please, download RTC SDK v9.23 (just uploaded) and let me know if that fixes your problem.
Logged
Dany
RTC License++
*****
Posts: 69


« Reply #2 on: March 07, 2018, 10:25:29 AM »

Yes, it does indeed.  Smiley Many thanks!

/D
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: March 07, 2018, 10:26:46 AM »

Great! Thank you for your feedback.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.