Skip to content

Fix indexOutOfBoundsException when multipart/form-data is incorrect v…#9688

Merged
normanmaurer merged 1 commit intonetty:4.1from
amizurov:feature/fix_8554
Oct 23, 2019
Merged

Fix indexOutOfBoundsException when multipart/form-data is incorrect v…#9688
normanmaurer merged 1 commit intonetty:4.1from
amizurov:feature/fix_8554

Conversation

@amizurov
Copy link
Copy Markdown
Contributor

Motivation:

Avoid invocation of HttpPostRequestDecoder#splitHeaderContentType(...) for incorrect multipart form data content-type.

Result:

Fixes #8554

@netty-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@normanmaurer
Copy link
Copy Markdown
Member

@netty-bot test this please

@normanmaurer normanmaurer added this to the 4.1.43.Final milestone Oct 22, 2019
@normanmaurer normanmaurer merged commit 8674ccf into netty:4.1 Oct 23, 2019
@normanmaurer
Copy link
Copy Markdown
Member

@amizurov thanks a lot !

normanmaurer pushed a commit that referenced this pull request Oct 23, 2019
…alue (#9688)

Motivation:

HttpPostRequestDecoder.splitHeaderContentType() throws a StringIndexOutOfBoundsException when it parses a Content-Type header that starts with a semicolon ;. We should skip the execution for incorrect multipart form data.


Modification:

Avoid invocation of HttpPostRequestDecoder#splitHeaderContentType(...) for incorrect multipart form data content-type.

Result:

Fixes #8554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StringIndexOutOfBoundsException thrown by HttpPostRequestDecoder.splitHeaderContentType() when Content-Type header starts with a semicolon

3 participants