GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — HttpUtil.getContentLength can throw parse error even when default value is supplied · Issue #12113 · netty/netty Closed Milestone DescriptionFairly straight-forward to fix, but not sure if we should actually change the behavior or just change the javadoc. I can contribute a PR. Expected behaviorCalling
Actual behaviorFor invalid inputs, the method throws an exception: Steps to reproduceRun the reproducer code. Minimal yet complete reproducer code (or URL to code)package io.micronaut.http.server.netty.fuzzing; import io.netty.handler.codec.http.DefaultFullHttpRequest; import io.netty.handler.codec.http.HttpMethod; import io.netty.handler.codec.http.HttpUtil; import io.netty.handler.codec.http.HttpVersion; public class X { public static void main(String[] args) { DefaultFullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/"); request.headers().add("Content-Length", "foo"); System.out.println(HttpUtil.getContentLength(request, 0)); } } Netty version4.1.73.Final JVM version (e.g.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |