Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    Vade 79
    Re: cdp buffer overflow vulnerability
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: cdp buffer overflow vulnerability

    In-Reply-To: <20040331161611.75451.qmail@web25104.mail.ukl.yaho o.com>

    for the patch you provided you should use sizeof(buffer), not strlen(buffer) (or 200) to limit the amount written to buffer[].

    >--- songname.patch ---
    >
    >--- cdp.c 2004-03-31 15:48:55.000000000 +0100
    >+++ cdp.1.c 2004-03-31 15:44:35.000000000 +0100
    >@@ -154,7 +154,7 @@
    > for ( ind = 0; ind < cdStatus.thiscd.ntracks;
    >ind++ ) {
    > trk = &cdStatus.thiscd.trk[ ind ];
    > if ( trk->songname != NULL ) {
    >- sprintf( buffer, "%s", trk->songname );
    >+ snprintf( buffer, strlen(buffer), "%s",
    >trk->songname );
    > } else
    > buffer[ 0 ] = 0;
    >
    >
    >--- eof ---


  2. #2
    Dave Paris
    Re: cdp buffer overflow vulnerability
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    RE: cdp buffer overflow vulnerability

    I would respectfully recommend submitting a more descriptive subject line
    next time. I saw "cdp" and the first thing that came to mind was "Cisco
    Discovery Protocol".

    Kind Regards,
    -dsp

    > -----Original Message-----
    > From: Shaun Colley [mailto:shaunige@yahoo.co.uk]
    > Sent: Wednesday, March 31, 2004 11:16 AM
    > To: bugtraq@securityfocus.com
    > Subject: cdp buffer overflow vulnerability
    >
    >
    > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ~*~*~*
    >
    > Product: cdp - console cd player

    [...]



Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics