bugGKSu - Bugs: bug #10542, Problem in NULL termination (in...

 
 

bug #10542: Problem in NULL termination (in prepare_xauth)

Submitted by:  None
Submitted on:  Thu 30 Sep 2004 05:38:20 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 01 May 2006 02:41:09 PM UTC, comment #1:

This has been fixed a bit differently. Thanks!

Gustavo Noronha Silva <kov>
Project Administrator
Thu 30 Sep 2004 05:38:20 PM UTC, original submission:

The occuring problem is that in the prepare_xauth function in gksu-context.c the xauth magic mit cookie is read from pipe but not correctly null-terminated.

fread (xauth, sizeof(char), 255, xauth_output);
xauth[strlen(xauth) - 1] = '\0';

As strlen will look for \0 this is a bit strange. Patch attached.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1819:  gksu-context.c.diff added by None (428B - application/octet-stream - gksu-context.c patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 01 May 2006 02:41:09 PM UTCkovStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 30 Sep 2004 05:38:20 PM UTCNoneAttached File-=>Added gksu-context.c.diff, #1724

Back to the top


Powered by Savane 3.1-cleanup1