bugAVR C Runtime Library - Bugs: bug #12775, Possible Bug in sscanf on string...

 
 

bug #12775: Possible Bug in sscanf on string end

Submitted by:  None
Submitted on:  Fri 22 Apr 2005 01:19:05 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 05 Aug 2005 02:40:34 PM UTC, comment #1:

Really bug in fgetc.
Fixed 2005-08-05.

Anatoly Sokolov <aesok>
Project Administrator
Fri 22 Apr 2005 01:19:05 PM UTC, original submission:

int sscanf_resp;
int value;
char dummy;
char buffer[] = {'1', '2', '3', 0, 'a'};
long_tcp_port = -1;

sscanf_resp = sscanf(args, "%i%c", &value, &dummy);

/*
Result:
sscanf_resp = 2
value = 123
dummy = a

Comment:
Why do sscanf read after string end?
Shoudn't sscanf respond with EOF if string end is reached?

*/

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 05 Aug 2005 02:40:34 PM UTCaesokStatusNone=>Fixed
  Assigned toaesok=>None
  Open/ClosedOpen=>Closed
Mon 01 Aug 2005 07:35:23 PM UTCaesokAssigned toNone=>aesok
Fri 22 Apr 2005 01:19:05 PM UTCNoneCarbon-Copy-=>Added seb --AT-- work-gmb --PUNKT-- de

Back to the top


Powered by Savane 3.1-cleanup1