Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [mingw] #39659: Drupal PHP warnings leak through to mingw.org
website visitors (MinGW Notification List)
2. [mingw] #39658: mingwrt 5.2.2 does not expose function
rand_s? (MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Tue, 08 Oct 2019 18:31:18 +0100
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #39659: Drupal PHP warnings leak
through to mingw.org website visitors
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#39659: Drupal PHP warnings leak through to mingw.org website visitors
Open Date: 2019-10-06 14:07
Last Update: 2019-10-08 18:31
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/39659
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39659
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2019-10-08 18:31 Updated by: keith
* Resolution Update from None to Won't Fix
Comment:
I see similar warnings, but only when I save an update to any page; I do not
see such warnings when simply viewing pages. In any case, I would prefer to see
the site migrate to WordPress, and am no longer interested in maintaining
Drupal content. I ignore the warnings, and would suggest that you do likewise.
Unless someone volunteers to assist in Drupal site maintenance, this is a
"won't fix".
---------------------------------------------------------------------
Ticket Status:
Reporter: sping
Owner: (None)
Type: Issues
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: WEBSITE
Severity: 5 - Medium
Resolution: Won't Fix
---------------------------------------------------------------------
Ticket details:
On http://www.mingw.org/Reporting_Bugs I am presented a PHP warning box saying:
strict warning: Non-static method Text_Wiki::singleton() should not be
called statically in
/var/www/drupal/6.x/sites/www.mingw.org/modules/pearwiki_filter/pearwiki_filter.module
on line 475.
strict warning: Non-static method Text_Wiki::factory() should not be called
statically in /usr/share/php/Text/Wiki.php on line 448.
strict warning: Non-static method Text_Wiki::error() should not be called
statically in /usr/share/php/Text/Wiki.php on line 477.
strict warning: Non-static method PEAR::throwError() should not be called
statically in /usr/share/php/Text/Wiki.php on line 1528.
strict warning: Non-static method PEAR::raiseError() should not be called
statically in /usr/share/php/PEAR.php on line 591.
strict warning: Non-static method Text_Wiki::isError() should not be called
statically in /usr/share/php/Text/Wiki.php on line 449.
Are you aware?
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/39659
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39659
------------------------------
Message: 2
Date: Tue, 08 Oct 2019 20:30:27 +0100
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #39658: mingwrt 5.2.2 does not expose
function rand_s?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#39658: mingwrt 5.2.2 does not expose function rand_s?
Open Date: 2019-10-06 13:50
Last Update: 2019-10-08 20:30
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/39658
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39658
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2019-10-08 20:30 Updated by: keith
Comment:
Reply To sping
We're about to define a prototype in https://github.com/libexpat/libexpat/
pull/356/files for MinGW in Expat ourselves now but it seems like the real
fix would be to have it in MinGW for everyone — what do you think?
Yes, it definitely makes sense that MinGW should declare rand_s() — in
<stdlib.h> — but exposed only for _WINNT_WIN32 >= _WINNT_WIN32_VISTA ||
__MSVCRT_VERSION__ >= __MCR80_DLL. However, don't be misled by Microsoft's
(bogus) claims that rand_s() is somehow more "secure" than rand(). Yes, it it
may generate random numbers with much greater entropy — because, let's face it,
rand() exhibits no entropy at all — but more "secure" it is not, (beyond
securing a modicum of Microsoft lock-in, since it conforms to no portable
standard whatsoever).
On a side note, msvcrt-xref.pdf says that rand_s is not contained in
Windows XP but contained in Windows Vista an after.
What it actually says is that WinXP's MSVCRT.DLL exports no such symbol as
rand_s(), and that is, in fact, the case.
The way I read the MS docs they imply availability in Windows XP but it
might be wishful thinking — if you know for sure, I'd be interested in more
details.
Nope. What Microsoft's docs actually say is that their rand_s() implementation
depends on the RtlGenRandom() MS-Windows API, which itself was introduced in
WinXP. rand_s() may be used on WinXP (and later) by linking with non-free
MSVCR80.DLL (or later), but not when linking with system supplied MSVCRT.DLL,
prior to Vista. On Win9x, or Win2K, rand_s() must fail, even if linked with
MSVCR80.DLL, because the underlying RtlGenRandom() API is not supported. On
WinXP, MinGW cannot offer rand_s() for (default) linking with MSVCRT.DLL; only
from Vista onwards, can we offer it universally.
---------------------------------------------------------------------
Ticket Status:
Reporter: sping
Owner: (None)
Type: Issues
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: WSL
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
Hi!
Windows introduced function rand_s some time and while I find mention of it in
MinGW's msvcrt-xref.pdf I cannot find a signature for it in mingwrt 5.2.2
headers. Are there plans to add a prototype to MinGW? We're about to define a
prototype in https://github.com/libexpat/libexpat/pull/356/files for MinGW in
Expat ourselves now but it seems like the real fix would be to have it in MinGW
for everyone — what do you think?
On a side note, msvcrt-xref.pdf says that rand_s is not contained in Windows XP
but contained in Windows Vista an after. The way I read the MS docs they imply
availability in Windows XP but it might be wishful thinking — if you know for
sure, I'd be interested in more details.
Thanks and best, Sebastian
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/39658
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39658
------------------------------
Subject: Digest Footer
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
------------------------------
End of MinGW-Notify Digest, Vol 25, Issue 3
*******************************************