JonY | 21 Sep 13:09 2014
Picon
Picon

[patch] fix vsprintf_s buffer overflow

Put in some basic effort to avoid overflows. Our vsprintf_s doesn't do anything
like the standard's yet, but at least it no longer tries to write over the boundary.

Patch OK?

diff --git a/mingw-w64-crt/secapi/vsprintf_s.c b/mingw-w64-crt/secapi/vsprintf_s.c
index 0ad1ef7..9e82bda 100644
--- a/mingw-w64-crt/secapi/vsprintf_s.c
+++ b/mingw-w64-crt/secapi/vsprintf_s.c
 <at>  <at>  -2,8 +2,8  <at>  <at> 
 #include <malloc.h>
 #include <errno.h>
 #include <msvcrt.h>
+#include <stdio.h>

-int __cdecl vsprintf (char *, const char *, va_list);
 int __cdecl vsprintf_s (char *, size_t, const char *, va_list);
 static int __cdecl _int_vsprintf_s (char *, size_t, const char *, va_list);
 static int __cdecl _stub (char *, size_t, const char *, va_list);
 <at>  <at>  -34,7 +34,7  <at>  <at>  vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
 }

 static int __cdecl
-_int_vsprintf_s (char *_DstBuf, size_t __UNUSED_PARAM(_Size), const char *_Format, va_list _ArgList)
+_int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
 {
-  return vsprintf (_DstBuf, _Format, _ArgList);
+  return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList);
 }

(Continue reading)

André Hentschel | 19 Sep 00:23 2014
Picon

[PATCH] stdio/math: Various implementations and more for ARM (v2)

Please review, i'll commit it, just need an OK.
v2 adds llrint functions, removes hidden attribute

Attachment (email.diff): text/x-patch, 22 KiB
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
André Hentschel | 18 Sep 23:55 2014
Picon

[PATCH] stdio/math: Various implementations and more for ARM

Please review, i'll commit it, just need an OK.

Attachment (email.diff): text/x-patch, 20 KiB
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
André Hentschel | 17 Sep 23:47 2014
Picon

[PATCH] misc: Various implementations and more for ARM

Please review, i'll commit it, just need an OK.

Attachment (email.diff): text/x-patch, 17 KiB
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
André Hentschel | 16 Sep 23:52 2014
Picon

[PATCH] misc/stdio: Various changes for ARM

Please review, i'll commit it, just need an OK.

Attachment (email.diff): text/x-patch, 4274 bytes
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Alexey Pavlov | 16 Sep 06:57 2014
Picon

[patch] Fix missing source

Attached patch fix listed source for mingwex{32,64} introduced in
commit [3e3f329]
Attachment (mingw-w64-missing-log.patch): application/octet-stream, 3238 bytes
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ralph Gossamer | 14 Sep 19:45 2014

Errors while compiling openssl

Hi,

I have installed the package mingw-w64 on Debian 7 (64bit) and tried to compile the latest version of
openssl (available from openssl.org)

Below are the error messages:
===============================================================
root <at> hostname:/home/username/openssl# CROSS_COMPILE="x86_64-w64-mingw32-" ./Configure mingw64
no-asm shared --prefix=/opt/openssl
Configuring for mingw64
    no-asm          [option]   OPENSSL_NO_ASM
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-zlib         [default] 
    no-zlib-dynamic [default] 
IsMK1MF=0
CC            =gcc
CFLAG         =-D_WINDLL -DOPENSSL_PIC -DOPENSSL_THREADS -D_MT -DDSO_WIN32 -DL_ENDIAN -O3 -Wall
-DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE
EX_LIBS       =-lws2_32 -lgdi32 -lcrypt32
CPUID_OBJ     =mem_clr.o
BN_ASM        =bn_asm.o
(Continue reading)

Ralph Gossamer | 14 Sep 17:23 2014

Where is x86_64-w64-mingw32-gcc in Debian 7?

So I have installed mingw-w64 components targetting only w64 architecture on Debian 7.

After installation, I couldn't locate x86_64-w64-mingw32-gcc. Or could it be called by another name?

Thanks in advance for your help.

Ralph

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Ralph Gossamer | 14 Sep 17:18 2014

Have I left out any packages?

Hi Pavel

I followed your advice and used Synaptic Package Manager to search for and install mingw-w64 targetting
the w64 platform. I de-selected those components such as i686 architecture and gnu fortran, gnu ada and
gnu objective-c++.

The following packages were installed on Debian 7:

gcc-mingw-w64-base

mingw-w64-x86-64-dev

g++-mingw-w64-x86-64

gcc-mingw-w64-x86-64

binutils-mingw-w64-x86-64

mingw-w64-tools

Have I left out any packages?

Regards.

Ralph

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
(Continue reading)

Ralph Gossamer | 13 Sep 17:44 2014
Picon

What are the Debian packages of MinGW-w64?

I apologize for the rather awkward formatting of my earlier post. Could the moderator delete it please?
Below is the same post but in text format.
============================================

Hi
 
I wish to build a 64-bit Windows binary on a Debian 64-bit OS.

What are the Debian packages of MinGW-w64 that I need?

Is it possible to cross-compile for Microsoft Windows without ever using MinGW-w64 on Debian?
 
Regards.
 
Ralph

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Ralph Gossamer | 13 Sep 17:42 2014
Picon

What are the differences between these two toolchains?

I apologize for the rather awkward formatting of my earlier post. Could the moderator delete it please?

Below is the same post but in text format.

=====================================================

Hi,
 
I've been suggested to use mingw-w64-1.0-bin_x86_64-linux_20120227.tar.bz2 but after browsing the
page
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/
I noticed the latest one is mingw-w64-bin_x86_64-linux_20131228.tar.bz2
 
First question: does mingw-w64-bin_x86_64-linux_20131228.tar.bz2 include all the functionalities
of mingw-w64-1.0-bin_x86_64-linux_20120227.tar.bz2?
 
Second question: what does the prefix mingw-w64-1.0 stand for? There are only two builds with such a
prefix. All the rest that follow come without.
 
Regards.
 
Ralph

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
(Continue reading)


Gmane