Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#808 closed defect (fixed)

printk crashes with field size smaller than value.

Reported by: Chris Johns Owned by: Joel Sherrill
Priority: highest Milestone: 2
Component: unspecified Version: 4.6
Severity: critical Keywords:
Cc: bugs@…, chrisj@… Blocked By:
Blocking:

Description

Using the pc386 the following code fails in the BSP. For example place this in bsp_pretasking_hook:

printk ("test: %5d", 12345678);

and a crash can occur yet:

printk ("test: %d", 12345678);

works.

Release:
4.6

Attachments (1)

printk.diff (643 bytes) - added by Chris Johns on 12/03/06 at 13:31:13.
printk.diff

Download all attachments as: .zip

Change History (3)

comment:1 Changed on 08/12/05 at 22:58:30 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: analyzed->closed
State-Changed-Why: Patch applied to 4.6 branch and CVS head.

Changed on 12/03/06 at 13:31:13 by Chris Johns

Attachment: printk.diff added

printk.diff

comment:2 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.