public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Vivek Katakam" <vivek1717@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Reg seg. violations
Date: Sun, 16 Jul 2006 18:58:00 -0000	[thread overview]
Message-ID: <d0e0ce060607161157v3c3772das70d37a9725c85ce6@mail.gmail.com> (raw)

Hi all

I  am mainly getting segmentation violation at this code in strlen and strcpy:

 printf("Content-type: text/html\n\n");
line_buffer = (char *) malloc(strlen(getenv("QUERY_STRING")) + 1);
strcpy(line_buffer, getenv("QUERY_STRING"));

at strlen and strcpy when QUERY_STRING is not set .
Is there a way to handle this? there are a lot of such occurrences.

Regards,
Vivek

             reply	other threads:[~2006-07-16 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-16 18:58 Vivek Katakam [this message]
2006-07-16 21:57 Bill McEnaney
2006-07-16 22:09 Bill McEnaney
2006-07-17  9:01 ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0e0ce060607161157v3c3772das70d37a9725c85ce6@mail.gmail.com \
    --to=vivek1717@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).