[Libs/HTTP] Added encoding for '+' and '&' #233

Merged
mxlgv merged 5 commits from http-asm-encoding-fix into main 2025-05-17 19:11:18 +02:00
Owner

This is clone of original GitHub PR by @Saru2003:
https://github.com/KolibriOS/kolibrios/pull/34

That address GitHub issue opened by @MvDDD
https://github.com/KolibriOS/kolibrios/issues/33

Warning

I am not author of PR code and don't fully understand how it works, so detailed review is required.

This is clone of original GitHub PR by @Saru2003: https://github.com/KolibriOS/kolibrios/pull/34 That address GitHub issue opened by @MvDDD https://github.com/KolibriOS/kolibrios/issues/33 > [!WARNING] > I am not author of PR code and don't fully understand how it works, so detailed review is required.
Burer added 1 commit 2025-05-10 10:41:16 +02:00
[Libs/HTTP] Added encoding for '+' and '&'
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 22s
Build system / Build (pull_request) Successful in 4m49s
b0d28e6b8d
Burer requested review from Doczom 2025-05-10 10:41:17 +02:00
Burer requested review from dunkaist 2025-05-10 10:41:17 +02:00
Burer requested review from IgorA 2025-05-10 10:41:17 +02:00
b00bl1k requested changes 2025-05-10 11:54:37 +02:00
Dismissed
@@ -2026,2 +2024,2 @@
dd 1 shl 27 + 1 shl 28 + 1 shl 29 + 1 shl 30 ;[\]^
dd 1 shl 0 + 1 shl 27 + 1 shl 28 + 1 shl 29 + 1 shl 31 ;`{|} DEL
dd 0xffffffff ; 00-1F
dd 1 shl 0 + 1 shl 2 + 1 shl 3 + 1 shl 5 + 1 shl 6 + 1 shl 11 + 1 shl 28 + 1 shl 30 ; "#%<>+&"
Contributor
  • 1 shl 0 means char (space)
  • 1 shl 2 means "
  • 1 shl 3 means #
  • 1 shl 5 means %
  • 1 shl 6 means &
  • 1 shl 11 means +
  • 1 shl 28 means <
  • 1 shl 30 means >

so, the last " in the comment is redundant

- `1 shl 0` means ` ` char (space) - `1 shl 2` means `"` - `1 shl 3` means `#` - `1 shl 5` means `%` - `1 shl 6` means `&` - `1 shl 11` means `+` - `1 shl 28` means `<` - `1 shl 30` means `>` so, the last `"` in the comment is redundant
Burer marked this conversation as resolved
@@ -2027,1 +2024,3 @@
dd 1 shl 0 + 1 shl 27 + 1 shl 28 + 1 shl 29 + 1 shl 31 ;`{|} DEL
dd 0xffffffff ; 00-1F
dd 1 shl 0 + 1 shl 2 + 1 shl 3 + 1 shl 5 + 1 shl 6 + 1 shl 11 + 1 shl 28 + 1 shl 30 ; "#%<>+&"
dd 1 shl 0 + 1 shl 2 + 1 shl 3 + 1 shl 5 + 1 shl 28 + 1 shl 30 ; "#%<>
Contributor

this line is redundant

this line is redundant
Burer marked this conversation as resolved
Burer added 1 commit 2025-05-10 12:43:45 +02:00
[Libs/HTTP] Fix to previous
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 20s
Build system / Build (pull_request) Successful in 4m52s
c974c50a4b
Member

;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
year of update in the header

;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;; year of update in the header
Burer added 1 commit 2025-05-11 14:41:47 +02:00
[Libs/HTTP] Updated copyright years
Some checks failed
Build system / Check kernel codestyle (pull_request) Has been cancelled
Build system / Build (pull_request) Has been cancelled
fab42d1f21
Burer added 1 commit 2025-05-12 10:35:09 +02:00
[Libs/HTTP] Add all delim chars from RFC 3986 standard
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 34s
Build system / Build (pull_request) Failing after 2m16s
e61c3064a8
Burer added 1 commit 2025-05-13 08:31:28 +02:00
[Libs/HTTP] Fixed binary numbers format
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 31s
Build system / Build (pull_request) Successful in 5m6s
ebeb16dd73
Doczom approved these changes 2025-05-13 09:21:09 +02:00
IgorA approved these changes 2025-05-13 09:28:06 +02:00
Burer changed title from WIP: [Libs/HTTP] Added encoding for '+' and '&' to [Libs/HTTP] Added encoding for '+' and '&' 2025-05-13 14:06:04 +02:00
Owner

How to test this?

How to test this?
b00bl1k approved these changes 2025-05-14 22:59:25 +02:00
b00bl1k left a comment
Contributor

Since only the PASTA app uses http_escape, I tried uploading part of the http.asm source code to check whether the data uploads without errors. It seems to be fine: https://dpaste.com/6SWM8FJMP

Since only the PASTA app uses http_escape, I tried uploading part of the http.asm source code to check whether the data uploads without errors. It seems to be fine: https://dpaste.com/6SWM8FJMP
mxlgv added
PR
Ready to merge
and removed
PR
Review required
labels 2025-05-17 18:38:44 +02:00
mxlgv force-pushed http-asm-encoding-fix from ebeb16dd73 to 65f87c7311 2025-05-17 18:38:55 +02:00 Compare
mxlgv merged commit c148987224 into main 2025-05-17 19:11:18 +02:00
mxlgv deleted branch http-asm-encoding-fix 2025-05-17 19:11:19 +02:00
Sign in to join this conversation.
5 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#233
No description provided.