From owner-freebsd-bugs Thu Nov 18 7:50: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A927415466 for ; Thu, 18 Nov 1999 07:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA02103; Thu, 18 Nov 1999 07:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from planar.cosmonet.org (kubo.j-phone.ne.jp [210.226.164.37]) by hub.freebsd.org (Postfix) with ESMTP id 6770215436 for ; Thu, 18 Nov 1999 07:42:17 -0800 (PST) (envelope-from cdr@cosmonet.org) Received: from prunus.r-panda.private (dmax001-pool036.tokyo2.tnis.egg.or.jp [210.129.251.37]) by planar.cosmonet.org (8.8.8/3.7W) with ESMTP id AAA20763 for ; Fri, 19 Nov 1999 00:38:52 +0900 (JST) Received: (from cdr@localhost) by prunus.r-panda.private (8.8.8/3.7W) id AAA15180; Fri, 19 Nov 1999 00:41:16 +0900 (JST) Message-Id: <199911181538.AAA20763@planar.cosmonet.org> Date: Fri, 19 Nov 1999 00:41:16 +0900 (JST) From: Tatsuya Kudoh To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/14978: problem of lprm(1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14978 >Category: bin >Synopsis: lprm(1) does not kill active daemon if hostname is too long >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 18 07:50:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Tatsuya Kudoh >Release: FreeBSD 2.2.8-RELEASE i386 >Organization: University of Electro-Communications(UEC) >Environment: >Description: When hostname is too long, lprm(1) fails to judge if the job is active or inactive. As a result, active daemon and filter process executed by daemon are not terminated. The cause is that a spool file that has over 39 characters-length filename causes buffer-overflow. >How-To-Repeat: Use long and long hostname. (I use 35 characters length hostname.) >Fix: At easy way, /usr/src/usr.sbin/lpr/common_source/rmjob.c, line 66: static char current[40]; /* active control file name */ Make this array more big. I changed this size to 256. ( In FreeBSD 3.2, this array is at line 72. But I don't know if this problem happens in FreeBSD 3.x.) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message