<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/base64/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/base64/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 02 Sep 2023 14:13:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/base64/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#8 Bug in supplied binary b64 with windows stdin</title><link>https://sourceforge.net/p/base64/bugs/8/?limit=25#5e21</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Note:I had started this quite a while ago and my ADHD brain neglected to actually press Post. Sorry about that.&lt;br/&gt;
Thank you so much for reporting this. I looked into it further, and there is indeed an issue with piping sometimes with these binaries. The bug is somewhere in the tcc compiler that I use in order to create small binaries. I opted to release the binary as I did because these binaries from tinycc are tiny. It passed the following test (just tested this):&lt;br/&gt;
b64 | b64 -e | b64 -d&lt;br/&gt;
Above displays the syntax box after encoding to base64 and decoding back to source. &lt;br/&gt;
The issue with piping in the tcc compiler does not exist with the gcc compiler. I am working on a huge body of project code and niggles with the tcc code are bothersome, but I want to keep whatever I release small. As you no doubt know yourself, this is increasingly challenging. &lt;br/&gt;
Anyway, you have my respect and heartfelt thanks for taking the time and trouble to not just report the problem but to test and demonstrate the issue. &lt;br/&gt;
I will be returning to clean this up with commentary because the code is now used in hundreds of millions of devices all over the world. The code was reflective of my style, philosophy, and tool suite at the time I published this over twenty years ago. Since that time I have continued to refine my thinking and tools have matured, so an update seems appropriate. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Sat, 02 Sep 2023 14:13:39 -0000</pubDate><guid>https://sourceforge.net789625751dfdeda7fb7f7955950ac959f546d823</guid></item><item><title>#8 Bug in supplied binary b64 with windows stdin</title><link>https://sourceforge.net/p/base64/bugs/8/?limit=25#87f8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Note that decoding -d does appear to work properly using stdin under windows.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Mittelstaedt</dc:creator><pubDate>Wed, 22 Feb 2023 15:05:09 -0000</pubDate><guid>https://sourceforge.neta7d117ac6876389718da9ea2146a539e995d2534</guid></item><item><title>Bug in supplied binary b64 with windows stdin</title><link>https://sourceforge.net/p/base64/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The supplied b64.exe does not work properly under Windows 10 cmd.exe if echo is used to pipe standard input.  It does work properly under windows 10 if the input is put into a file and the file is fed to the program.&lt;/p&gt;
&lt;p&gt;For example create the textfile using Notepad named "test.txt" containing the line  &lt;/p&gt;
&lt;p&gt;THISisSOURCEdata&lt;/p&gt;
&lt;p&gt;Note the following output:&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;notepad test.txt&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;b64 -e test.txt&lt;br/&gt;
VEhJU2lzU09VUkNFZGF0YQ==&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;echo THISisSOURCEdata | b64 -e&lt;br/&gt;
VEhJU2lzU09VUkNFZGF0YSAK&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;&lt;/p&gt;
&lt;p&gt;Now, shorten the line to&lt;/p&gt;
&lt;p&gt;THISisSOURCEdat&lt;/p&gt;
&lt;p&gt;Note the output:&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;b64 -e test.txt&lt;br/&gt;
VEhJU2lzU09VUkNFZGF0&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;echo THISisSOURCEdat | b64 -e&lt;br/&gt;
VEhJU2lzU09VUkNFZGF0IAo=&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;&lt;/p&gt;
&lt;p&gt;Now shorten it by one more character and note the output:&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;b64 -e test.txt&lt;br/&gt;
VEhJU2lzU09VUkNFZGE=&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;echo THISisSOURCEda | b64 -e&lt;br/&gt;
VEhJU2lzU09VUkNFZGEgCg==&lt;/p&gt;
&lt;p&gt;C:\Users\tedm\Downloads\b64.0.94&amp;gt;&lt;/p&gt;
&lt;p&gt;Possibly a recompile using one of the suggestions in the "reviews" would help I have not tried.  Just beware using the binary in scripts, etc. under Windows.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ted Mittelstaedt</dc:creator><pubDate>Wed, 22 Feb 2023 14:58:45 -0000</pubDate><guid>https://sourceforge.net7abf9a732d4934310cdc0ddedd27a4f1818329b9</guid></item><item><title>#6 Decoding Error</title><link>https://sourceforge.net/p/base64/bugs/6/?limit=25#5ef5</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Thu, 29 Oct 2015 07:24:26 -0000</pubDate><guid>https://sourceforge.net34710622620f843a2725e949225f22881f30592a</guid></item><item><title>#6 Decoding Error</title><link>https://sourceforge.net/p/base64/bugs/6/?limit=25#f828</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0 (example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Thu, 29 Oct 2015 07:21:53 -0000</pubDate><guid>https://sourceforge.net600b286313319290c3a306f85f2851150e1e8668</guid></item><item><title>#7 ce</title><link>https://sourceforge.net/p/base64/bugs/7/?limit=25#fbea</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;Description has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="gd"&gt;--- old&lt;/span&gt;
&lt;span class="gi"&gt;+++ new&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,4 +1,3 @@&lt;/span&gt;
&lt;span class="gd"&gt;-&lt;/span&gt;
 I have found a basic problem in your most recent change in v.1.7 there appears to be a problem in the decode function where 'putc' return value is being checked against '0'.
 I have changed a little bit of the code such that putc does not check it's return value, but ferror is still called directly afterwards...
&lt;/pre&gt;&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Thu, 29 Oct 2015 07:20:43 -0000</pubDate><guid>https://sourceforge.net9d277086a929c876224d82f17259d018fb7acf88</guid></item><item><title>#7 ce</title><link>https://sourceforge.net/p/base64/bugs/7/?limit=25#8527</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the report. Finally fixed and sorry for the delay. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Thu, 29 Oct 2015 07:05:35 -0000</pubDate><guid>https://sourceforge.net8a966dbebdc47e9d6df4a2cae7811d5403620aad</guid></item><item><title>#6 Decoding Error</title><link>https://sourceforge.net/p/base64/bugs/6/?limit=25#589c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Code has been updated to version 0.94R and it has a small test added to ensure that binary code (the b64.exe file itself) is encoded and then decoded properly. &lt;/p&gt;
&lt;p&gt;Many thanks to people who reviewed and reported this. It was very easy to find and fix things because of the reports showing exactly the symptom and even the offending lines of code. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Trower</dc:creator><pubDate>Thu, 29 Oct 2015 07:03:15 -0000</pubDate><guid>https://sourceforge.netd12e7411b89deb371b7322bb4241f78f7ffe1390</guid></item><item><title>ce</title><link>https://sourceforge.net/p/base64/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have found a basic problem in your most recent change in v.1.7 there appears to be a problem in the decode function where 'putc' return value is being checked against '0'.&lt;br /&gt;
I have changed a little bit of the code such that putc does not check it's return value, but ferror is still called directly afterwards...&lt;/p&gt;
&lt;p&gt;I have attached the modified file, please compare it to your most recent change (v.1.7) and see if you like it...&lt;/p&gt;
&lt;p&gt;Scott.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott</dc:creator><pubDate>Sun, 11 Jan 2015 04:46:04 -0000</pubDate><guid>https://sourceforge.net8f17572df6eba1b6d497748d952d84cbb02ae8ea</guid></item><item><title>ce</title><link>https://sourceforge.net/p/base64/bugs/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 7 has been modified: ce&lt;br/&gt;
Edited By: Bob Trower (btrower)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'closed-fixed'&lt;br/&gt;
Description updated:&lt;br/&gt;
--- description-old&lt;/p&gt;
&lt;p&gt;+++ description-new&lt;/p&gt;
&lt;p&gt;@@ -1,4 +1,3 @@&lt;/p&gt;
&lt;p&gt;-&lt;br/&gt;
 I have found a basic problem in your most recent change in v.1.7 there appears to be a problem in the decode function where 'putc' return value is being checked against '0'.&lt;br/&gt;
 I have changed a little bit of the code such that putc does not check it's return value, but ferror is still called directly afterwards...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott</dc:creator><pubDate>Sun, 11 Jan 2015 04:46:04 -0000</pubDate><guid>https://sourceforge.neta5d4d40bcc4de754523e1f53ea96fca7c7187171</guid></item></channel></rss>