[1003.1(2013)/Issue7+TC1 0001020]: snprintf: the description of the n argument conflicts with ISO C

2019-10-21 Thread Austin Group Bug Tracker


The following issue has a resolution that has been APPLIED. 
== 
http://austingroupbugs.net/view.php?id=1020 
== 
Reported By:ch3root
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1020
Category:   System Interfaces
Type:   Error
Severity:   Objection
Priority:   normal
Status: Applied
Name:   Alexander Cherepanov 
Organization:
User Reference:  
Section:fprintf() description of snprintf() 
Page Number:900 
Line Number:30166-30167 
Interp Status:  --- 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1020#c3482 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-01-05 16:34 UTC
Last Modified:  2019-10-21 14:06 UTC
== 
Summary:snprintf: the description of the n argument
conflicts with ISO C
==
Relationships   ID  Summary
--
related to  761 Requirement of error for snprintf with ...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-01-05 16:34 ch3rootNew Issue
2016-01-05 16:34 ch3rootName  => Alexander
Cherepanov
2016-01-05 16:34 ch3rootSection   => snprintf
2016-01-05 16:34 ch3rootPage Number   => (page or range of
pages)
2016-01-05 16:34 ch3rootLine Number   => (Line or range of
lines)
2016-01-05 17:49 jsm28  Note Added: 0002999  
2016-01-05 20:07 shware_systems Note Added: 0003000  
2016-01-05 20:18 eblake Relationship added   related to 761  
2016-01-05 22:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2016-01-05 22:35 ch3rootNote Added: 0003006  
2016-01-07 05:02 shware_systems Note Added: 0003014  
2016-01-07 10:37 ch3rootNote Added: 0003016  
2016-01-07 11:43 Vincent LefevreNote Added: 0003018  
2016-01-07 13:51 shware_systems Note Added: 0003019  
2016-01-07 14:14 shware_systems Note Edited: 0003019 
2016-01-08 00:45 user229Note Added: 0003020  
2016-01-08 02:52 Don Cragun Section  snprintf => fprintf()
description of snprintf()
2016-01-08 02:52 Don Cragun Page Number  (page or range of
pages) => 900
2016-01-08 02:52 Don Cragun Line Number  (Line or range of
lines) => 30166-30167
2016-01-08 02:52 Don Cragun Interp Status => --- 
2016-11-03 15:14 geoffclare Note Added: 0003482  
2016-11-03 15:15 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1020#c3482
2016-11-03 15:15 geoffclare Status   New => Resolved 
2016-11-03 15:15 geoffclare Resolution   Open => Accepted As
Marked
2016-11-03 15:15 geoffclare Tag Attached: tc3-2008   
2016-11-07 09:21 shware_systems Note Added: 0003483  
2019-10-21 14:06 geoffclare Status   Resolved => Applied 
==




[1003.1(2013)/Issue7+TC1 0001020]: snprintf: the description of the n argument conflicts with ISO C

2016-11-07 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1020 
== 
Reported By:ch3root
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1020
Category:   System Interfaces
Type:   Error
Severity:   Objection
Priority:   normal
Status: Resolved
Name:   Alexander Cherepanov 
Organization:
User Reference:  
Section:fprintf() description of snprintf() 
Page Number:900 
Line Number:30166-30167 
Interp Status:  --- 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1020#c3482 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-01-05 16:34 UTC
Last Modified:  2016-11-07 09:21 UTC
== 
Summary:snprintf: the description of the n argument
conflicts with ISO C
==
Relationships   ID  Summary
--
related to  761 Requirement of error for snprintf with ...
== 

-- 
 (0003483) shware_systems (reporter) - 2016-11-07 09:21
 http://austingroupbugs.net/view.php?id=1020#c3483 
-- 
Re: 3020
I agree the language is more vague on details than other parts of the
standard, but I don't see it as particularly sloppy. The point of the '_s'
interfaces is having versions that don't have common security holes like
buffer overruns, so when it says 'fit within' or 'too big' to me the intent
is the implementations >>shall do what's necessary, documented or not<< to
prevent those overruns. It seems there it's left open 'how' to work that
magic so imps, at their discretion, can use their existing code to get it
done or new methods.

Either way could reference the same data in the memory manager free(void *)
has to, to get the value used with malloc() or realloc(), or calculate a
usable size if block chaining/coalescing used. This applies whether the
malloc() calls happen at runtime or when creating object descriptions for
an object file at compile time, for auto or static declarations. On POSIX
systems there's the complexity of supporting dl_sym() too, in some fashion,
for externs exported by libraries, but code exists for that also. The vague
aspect I see is whether the sizes are 'as declared' or 'as allocated to
satisfy alignment practices', not that sizing involves any magic. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-01-05 16:34 ch3rootNew Issue
2016-01-05 16:34 ch3rootName  => Alexander
Cherepanov
2016-01-05 16:34 ch3rootSection   => snprintf
2016-01-05 16:34 ch3rootPage Number   => (page or range of
pages)
2016-01-05 16:34 ch3rootLine Number   => (Line or range of
lines)
2016-01-05 17:49 jsm28  Note Added: 0002999  
2016-01-05 20:07 shware_systems Note Added: 0003000  
2016-01-05 20:18 eblake Relationship added   related to 761  
2016-01-05 22:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2016-01-05 22:35 ch3rootNote Added: 0003006  
2016-01-07 05:02 shware_systems Note Added: 0003014  
2016-01-07 10:37 ch3rootNote Added: 0003016  
2016-01-07 11:43 Vincent LefevreNote Added: 0003018  
2016-01-07 13:51 shware_systems Note Added: 0003019  
2016-01-07 14:14 shware_systems Note Edited: 0003019 
2016-01-08 00:45 random832  Note Added: 0003020  
2016-01-08 02:52 Don Cragun Section  snprintf => fprintf()
description of snprintf()
2016-01-08 02:52 Don Cragun Page Number  (page or range of
pages) => 900
2016-01-08 02:52 Don Cragun Line Number  (Line or range of
lines) => 30166-30167
2016-01-08 02:52 Don Cragun Interp Status => ---  

[1003.1(2013)/Issue7+TC1 0001020]: snprintf: the description of the n argument conflicts with ISO C

2016-11-03 Thread Austin Group Bug Tracker

The following issue has been RESOLVED. 
== 
http://austingroupbugs.net/view.php?id=1020 
== 
Reported By:ch3root
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1020
Category:   System Interfaces
Type:   Error
Severity:   Objection
Priority:   normal
Status: Resolved
Name:   Alexander Cherepanov 
Organization:
User Reference:  
Section:fprintf() description of snprintf() 
Page Number:900 
Line Number:30166-30167 
Interp Status:  --- 
Final Accepted Text:http://austingroupbugs.net/view.php?id=1020#c3482 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2016-01-05 16:34 UTC
Last Modified:  2016-11-03 15:15 UTC
== 
Summary:snprintf: the description of the n argument
conflicts with ISO C
==
Relationships   ID  Summary
--
related to  761 Requirement of error for snprintf with ...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-01-05 16:34 ch3rootNew Issue
2016-01-05 16:34 ch3rootName  => Alexander
Cherepanov
2016-01-05 16:34 ch3rootSection   => snprintf
2016-01-05 16:34 ch3rootPage Number   => (page or range of
pages)
2016-01-05 16:34 ch3rootLine Number   => (Line or range of
lines)
2016-01-05 17:49 jsm28  Note Added: 0002999  
2016-01-05 20:07 shware_systems Note Added: 0003000  
2016-01-05 20:18 eblake Relationship added   related to 761  
2016-01-05 22:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2016-01-05 22:35 ch3rootNote Added: 0003006  
2016-01-07 05:02 shware_systems Note Added: 0003014  
2016-01-07 10:37 ch3rootNote Added: 0003016  
2016-01-07 11:43 Vincent LefevreNote Added: 0003018  
2016-01-07 13:51 shware_systems Note Added: 0003019  
2016-01-07 14:14 shware_systems Note Edited: 0003019 
2016-01-08 00:45 random832  Note Added: 0003020  
2016-01-08 02:52 Don Cragun Section  snprintf => fprintf()
description of snprintf()
2016-01-08 02:52 Don Cragun Page Number  (page or range of
pages) => 900
2016-01-08 02:52 Don Cragun Line Number  (Line or range of
lines) => 30166-30167
2016-01-08 02:52 Don Cragun Interp Status => --- 
2016-11-03 15:14 geoffclare Note Added: 0003482  
2016-11-03 15:15 geoffclare Final Accepted Text   =>
http://austingroupbugs.net/view.php?id=1020#c3482
2016-11-03 15:15 geoffclare Status   New => Resolved 
2016-11-03 15:15 geoffclare Resolution   Open => Accepted As
Marked
==




[1003.1(2013)/Issue7+TC1 0001020]: snprintf: the description of the n argument conflicts with ISO C

2016-11-03 Thread Austin Group Bug Tracker

A NOTE has been added to this issue. 
== 
http://austingroupbugs.net/view.php?id=1020 
== 
Reported By:ch3root
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   1020
Category:   System Interfaces
Type:   Error
Severity:   Objection
Priority:   normal
Status: New
Name:   Alexander Cherepanov 
Organization:
User Reference:  
Section:fprintf() description of snprintf() 
Page Number:900 
Line Number:30166-30167 
Interp Status:  --- 
Final Accepted Text: 
== 
Date Submitted: 2016-01-05 16:34 UTC
Last Modified:  2016-11-03 15:14 UTC
== 
Summary:snprintf: the description of the n argument
conflicts with ISO C
==
Relationships   ID  Summary
--
related to  761 Requirement of error for snprintf with ...
== 

-- 
 (0003482) geoffclare (manager) - 2016-11-03 15:14
 http://austingroupbugs.net/view.php?id=1020#c3482 
-- 
Change:with the addition of the n argument which states
the size of the buffer referred to by
s.to:with the addition of the n
argument which limits the number of bytes written to the buffer referred to
by s. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2016-01-05 16:34 ch3rootNew Issue
2016-01-05 16:34 ch3rootName  => Alexander
Cherepanov
2016-01-05 16:34 ch3rootSection   => snprintf
2016-01-05 16:34 ch3rootPage Number   => (page or range of
pages)
2016-01-05 16:34 ch3rootLine Number   => (Line or range of
lines)
2016-01-05 17:49 jsm28  Note Added: 0002999  
2016-01-05 20:07 shware_systems Note Added: 0003000  
2016-01-05 20:18 eblake Relationship added   related to 761  
2016-01-05 22:26 Florian Weimer Issue Monitored: Florian Weimer 
  
2016-01-05 22:35 ch3rootNote Added: 0003006  
2016-01-07 05:02 shware_systems Note Added: 0003014  
2016-01-07 10:37 ch3rootNote Added: 0003016  
2016-01-07 11:43 Vincent LefevreNote Added: 0003018  
2016-01-07 13:51 shware_systems Note Added: 0003019  
2016-01-07 14:14 shware_systems Note Edited: 0003019 
2016-01-08 00:45 random832  Note Added: 0003020  
2016-01-08 02:52 Don Cragun Section  snprintf => fprintf()
description of snprintf()
2016-01-08 02:52 Don Cragun Page Number  (page or range of
pages) => 900
2016-01-08 02:52 Don Cragun Line Number  (Line or range of
lines) => 30166-30167
2016-01-08 02:52 Don Cragun Interp Status => --- 
2016-11-03 15:14 geoffclare Note Added: 0003482  
==