commit | 69cbc0464d87bfa38c0a4fe4d8bb751c1ec8cedf | [log] [tgz] |
---|---|---|
author | Chen Gang <gang.chen@asianux.com> | Thu May 30 10:35:34 2013 +0800 |
committer | Tony Luck <tony.luck@intel.com> | Mon Jun 03 16:09:43 2013 -0700 |
tree | 7cffd82b2cc5f9429255df6785e5b890da8ba617 | |
parent | d5e660ba801e333657e7c6d10cd806f277c438fb [diff] |
[IA64] hpsim: Fix check for overlong simscsi prefix. When "strlen(s) > MAX_ROOT_LEN", it has already said to use the default value, but in fact, it still use the input value. If happens, next sprintf() for 'fname' in simscsi_queuecommand_lck() may be memory overflow. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Tony Luck <tony.luck@intel.com>