AW: [PATCH] fix:awk: CONVFMT segfaults with %n, wrong output with %p
"Schindler, Dietmar - OTPS via busybox" <[email protected]> Tue, 5 May 2026 12:39:38 +0000
| Newsgroups | gmane.linux.busybox |
|---|---|
| Message-ID | <FR3P281MB2586309435F1EC4A322D6AFFE93E2@FR3P281MB2586.DEUP281.PROD.OUTLOOK.COM> |
> Von: busybox <[email protected]> Im Auftrag von Hans Ulli Kroll via busybox > Gesendet: Dienstag, 5. Mai 2026 11:07 > > ... > also busybox emits wrong output wth &p > $ ./busybox awk 'BEGIN { CONVFMT="%pf"; x=3.16; print x "" }'; echo $? > 0x3f > 0 > ... The output cannot be wrong, because according to https://pubs.opengroup.org/onlinepubs/9799919799/utilities/awk.html and https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap05.html: "If any character sequence in the format string begins with a '%' character, but does not form a valid conversion specification, the behavior is unspecified." -- Best regards, Dietmar Schindler ________________________________ manroland Goss web systems GmbH | Managing Director: Franz Kriechbaum Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 32609 | VAT: DE815764857 Confidentiality note: This message and any attached documents may contain confidential or proprietary information of manroland|Goss. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system. All liability for viruses is excluded to the fulles t extent permitted by law. ________________________________