发现tomcat的一个bug
apache-tomcat-6.0.20-src
package org.apache.catalina.util;
public final class RequestUtil {
…
/**
* Decode and return the specified URL-encoded byte array. It is assumed
* the string is not a query string.
*
* @param bytes The url-encoded byte array
* @param enc The encoding to use; if null, the default encoding is used
* @exception IllegalArgumentException if a '%' character is not followed
* by a valid 2-digit hexadecimal number
*/
public static String URLDecode(byte[] bytes, String enc) {
return URLDecode(bytes, null, false);
}
}
从函数声明看是要用enc对bytes进行解码,但实现时却没有用到enc这个参数。
已经提交并得到开发者确认了。
https://issues.apache.org/bugzilla/show_bug.cgi?id=48645
转载于:https://www.cnblogs.com/MichaelPeng/archive/2010/01/31/1660620.html
- 发现tomcat的一个bug
- [置顶]发现live555中一个小bug(2)
- 今天发现一个非常奇怪的VSIDE BUG,经过1个小时的研究解决
- 发现QtCreator一个bug
- 一个让服务器CPU飙升的BUG。找了2天才发现。
- 很久以前发现的 vc2008 的一个bug(关于模板匹配)
- 发现live555中一个小bug
- 记录发现的一个hiredis的bug
- 发现ICE一个小小的BUG
- 发现一个hibernate针对derby数据库的问题bug,及解决办法
- 发现了一个delphi的form的bug
- Markdown使用时的一个BUG的发现过程
- 很久以前发现的 vc2008 的一个bug(关于模板匹配)
- 发现live555中一个小bug
- 发现live555中一个小bug(2)
- 今天发现一个 vc 的大 bug
- 发现一个iis 重定向的bug
- 今天又发现IE的一个BUG!与Binary Behavior有关
- 又发现了一个VS.NET 2005的小BUG
- 发现storm代码的一个Bug