Date: Wed, 10 Mar 1999 03:20:40 +0900 (JST) From: SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/10511: incorrect return value in kvm_read(3) and kvm_write(3) Message-ID: <199903091820.DAA08352@atami.spa.is.uec.ac.jp>
next in thread | raw e-mail | index | archive | help
>Number: 10511 >Category: bin >Synopsis: incorrect return value in kvm_read(3) and kvm_write(3) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 9 10:30:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: SAITOH Masanobu >Release: all >Organization: University of Electro-Communications >Environment: -current >Description: manpage says: + RETURN VALUES + Upon success, the number of bytes actually transferred is returned. Oth- + erwise, -1 is returned. but, it returns 0 on error. And, some programs ckecks like: if (kvm_read(kd, addr, buf, len) < 0) This causes serious problems. >How-To-Repeat: This bug cause pidentd to infinite-loops. >Fix: return -1 on error. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903091820.DAA08352>