+2018-06-24 Pádraig Brady <P@draigBrady.com>
+
+ maint: clarify comments about sticky EOF
+ * lib/af_alg.c: Be more direct that we can't
+ assume stickiness of EOF for portability reasons.
+ * lib/md5.c: Clarify that this isn't just a glibc issue.
+ * lib/sha1.c: Likewise.
+ * lib/sha256.c: Likewise.
+ * lib/sha512.c: Likewise.
+
2018-06-24 Bruno Haible <bruno@clisp.org>
af_alg: Comment and style improvements.
break;
}
- /* Assume EOF is not sticky. See:
+ /* Don't assume that EOF is sticky. See:
<https://sourceware.org/bugzilla/show_bug.cgi?id=19476>. */
if (feof (stream))
{
{
/* Either process a partial fread() from this loop,
or the fread() in afalg_stream may have gotten EOF.
- We need to avoid a subsequent fread() due to glibc BZ 1190. */
+ We need to avoid a subsequent fread() as EOF may
+ not be sticky. For details of such systems, see:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */
if (feof (stream))
goto process_partial_block;
{
/* Either process a partial fread() from this loop,
or the fread() in afalg_stream may have gotten EOF.
- We need to avoid a subsequent fread() due to glibc BZ 1190. */
+ We need to avoid a subsequent fread() as EOF may
+ not be sticky. For details of such systems, see:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */
if (feof (stream))
goto process_partial_block;
{
/* Either process a partial fread() from this loop,
or the fread() in afalg_stream may have gotten EOF.
- We need to avoid a subsequent fread() due to glibc BZ 1190. */
+ We need to avoid a subsequent fread() as EOF may
+ not be sticky. For details of such systems, see:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */
if (feof (stream))
goto process_partial_block;
{
/* Either process a partial fread() from this loop,
or the fread() in afalg_stream may have gotten EOF.
- We need to avoid a subsequent fread() due to glibc BZ 1190. */
+ We need to avoid a subsequent fread() as EOF may
+ not be sticky. For details of such systems, see:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */
if (feof (stream))
goto process_partial_block;