Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2001 16:26:11 -0700 (PDT)
From:      Jesper Skriver <jesper@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/boot/common module.c
Message-ID:  <200105272326.f4RNQBG20221@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jesper      2001/05/27 16:26:11 PDT

  Modified files:
    sys/boot/common      module.c 
  Log:
  In sys/boot/common/module.c, near line 105 a request for a raw
  file is processed by passing its name in argv[1]:
          return(mod_loadobj(typestr, argv[1]));
  however, it is not tested to see if argv[1] actually is defined.
  
  At best, mod_loadobj() near line 244 returns an error like
  "can't find 'garbage'" but if the "filename" entered is sufficiently
  long, some buffer gets overrun. Of course, "load -t filename" is
  actually a typo because we meant to type "load -t mfs_root filename";
  nevertheless, a hung machine seems like too harsh a punishment for
  such a small typo...
  
  PR:			i386/27693
  Submitted by:	Adrian Steinmann <ast@marabu.ch>
  MFC after:	1 week
  
  Revision  Changes    Path
  1.19      +2 -2      src/sys/boot/common/module.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105272326.f4RNQBG20221>