RE: 3 Win32::API bugs

2012-05-16 Thread bulk 88
I reached an interesting problem. I added buffer overflow protection to SVPV pointer types. Win32::API's own test suite died from a buffer overflow here https://github.com/cosimo/perl5-win32-api/blob/45847136293a8d6939fc319f91702d0b91287726/t/00_API.t#L115 . The sentinal pattern is 2 wide nulls

Re: 3 Win32::API bugs

2012-05-16 Thread $Bill Luebkert
On 05/16/2012 12:35, bulk 88 wrote: I would rather not change the dll parameter to a dual purpose ref or non ref, its not obvious what the code is doing then. Someone might ask does Win32::API correct "unnormalized" dll names now or returns the full path name of the DLL loaded from a relative

RE: 3 Win32::API bugs

2012-05-16 Thread bulk 88
> Date: Tue, 15 May 2012 11:44:30 -0700 > From: dbec...@roadrunner.com > To: bul...@hotmail.com > CC: libwin32@perl.org > Subject: Re: 3 Win32::API bugs > .. > This would also not break Win32::API::Proto

Re: 3 Win32::API bugs

2012-05-16 Thread $Bill Luebkert
On 05/14/2012 11:33, bulk 88 wrote: I'm going to restart this discussion at http://www.perlmonks.org/?node_id=970481 . I hope more pairs of eyes see there and respond there. I can't log in there at the moment - won't take my password or email me a new one. Wouldn't something like this work

RE: 3 Win32::API bugs

2012-05-15 Thread bulk 88
> Date: Thu, 10 May 2012 11:55:02 -0700 > From: dbec...@roadrunner.com > To: bul...@hotmail.com > CC: libwin32@perl.org > Subject: Re: 3 Win32::API bugs > By the way - not to make your job more difficult or anything, but > there

Re: 3 Win32::API bugs

2012-05-13 Thread $Bill Luebkert
On 05/10/2012 12:12, bulk 88 wrote: Read my post from the other day. Win32::API can already do this with some runtime package namespace messing. http://perlmonks.org/?node_id=969555 I highly suggest you write an XS library though. C or C++ for your COM code. I was thinking to add the functio

RE: 3 Win32::API bugs

2012-05-13 Thread bulk 88
> Date: Fri, 11 May 2012 10:08:02 +0200 > From: d...@perl.it > To: bul...@hotmail.com > CC: cos...@streppone.it; libwin32@perl.org > Subject: Re: 3 Win32::API bugs > > as you may have realized, Win32::API::Callback is pure evil :-)

RE: 3 Win32::API bugs

2012-05-11 Thread bulk 88
> From: bul...@hotmail.com > To: cos...@streppone.it; libwin32@perl.org; d...@perl.it > Subject: RE: 3 Win32::API bugs > Date: Thu, 10 May 2012 12:00:57 -0400 > I still don't know what letter to use for shorts. $ has no lower case v

Re: 3 Win32::API bugs

2012-05-11 Thread $Bill Luebkert
On 05/09/2012 07:10, bulk 88 wrote: Since Callback is crashing, I dont know whether to try to fix it, so I have a question, did 02_Callback.t ever not crash with a certain version number of Win32::API, with a certain compiler, etc? Or should I forget about callback and try and fix the 3 other

RE: 3 Win32::API bugs

2012-05-11 Thread bulk 88
> Date: Thu, 10 May 2012 11:55:02 -0700 > From: dbec...@roadrunner.com > To: bul...@hotmail.com > CC: libwin32@perl.org > Subject: Re: 3 Win32::API bugs > By the way - not to make your job more difficult or anything, but > there

RE: 3 Win32::API bugs

2012-05-11 Thread bulk 88
> To: d...@perl.it; libwin32@perl.org; bul...@hotmail.com > Subject: Re: 3 Win32::API bugs > Date: Thu, 10 May 2012 10:53:45 +0200 > From: cos...@streppone.it > > Or should I forget about callback and try and fix the 3 other bugs (func

Re: 3 Win32::API bugs

2012-05-11 Thread Aldo Calpini
On 05/10/2012 06:00 PM, bulk 88 wrote: I still don't know what letter to use for shorts. $ has no lower case version for signed short. H is too closed to hex numbers and pack's existing H unpack feature letter (H="Half"), someone might want to put in a 'H' type code one day to get strings back

Re: 3 Win32::API bugs

2012-05-10 Thread Olivier Mengué
2012/5/8 $Bill Luebkert > > I'd be glad to aid, but have no development environment and haven't > done any XS code yet. If someone knows how to set up a tree to do > XS dev, let me know - hopefully it would be just unzipping a tree > and setting an env vrbl or two and include examples and some d

Re: 3 Win32::API bugs

2012-05-10 Thread Sisyphus
- Original Message - From: "bulk 88" I think for some reason my emails are blocked from libwin32@perl.org. I'm seeing your emails ok - and only because I'm subscribed to libwin32@perl.org (afaik). Cheers, Rob

Re: 3 Win32::API bugs

2012-05-10 Thread Cosimo Streppone
On Wed, 09 May 2012 16:10:40 +0200, bulk 88 wrote: Since Callback is crashing, I dont know whether to try to fix it, so I have a question, did 02_Callback.t ever not crash with a certain version number of Win32::API, with a certain compiler, etc? IIRC, since we added the first 64-bits supp

RE: 3 Win32::API bugs

2012-05-10 Thread bulk 88
> Date: Wed, 9 May 2012 10:35:37 +0200 > From: d...@perl.it > To: libwin32@perl.org > CC: bul...@hotmail.com > Subject: Re: 3 Win32::API bugs > > On 05/09/2012 09:23 AM, Cosimo Streppone wrote: > >> How is the no shor

RE: 3 Win32::API bugs

2012-05-10 Thread bulk 88
> From: bul...@hotmail.com > To: d...@perl.it; libwin32@perl.org > Subject: RE: 3 Win32::API bugs > Date: Wed, 9 May 2012 10:10:40 -0400 > Since Callback is crashing, I dont know whether to try to fix it, so I have a > question, did

Re: 3 Win32::API bugs

2012-05-10 Thread $Bill Luebkert
On 05/08/2012 08:27, Aldo Calpini wrote: On 05/08/2012 10:40 AM, Cosimo Streppone wrote: Anyone cares enough to step in? I can do it :-) but please don't hold your breath! it can take me quite some time (let's say, between a few weeks and some months), since I'm pretty busy too. thanks and

Re: 3 Win32::API bugs

2012-05-09 Thread Aldo Calpini
On 05/09/2012 09:23 AM, Cosimo Streppone wrote: I have a few questions though, maybe you can answer them. Why is there a T_INTERGER and T_NUMBER flag? I see T_INTEGER is mapped to T_NUMBER. Why did T_INTEGER ever exist? or is T_INTEGER just a 4 byte integer and T_NUMBER is a 4/8 byte integer? T

Re: 3 Win32::API bugs

2012-05-09 Thread Cosimo Streppone
On Tue, 08 May 2012 18:19:21 +0200, bulk 88 wrote: To: bul...@hotmail.com Subject: Re: 3 Win32::API bugs Date: Tue, 8 May 2012 10:40:27 +0200 CC: libwin32@perl.org From: cos...@streppone.it If you can help, or you know someone who could, please point

Re: 3 Win32::API bugs

2012-05-08 Thread Aldo Calpini
On 05/08/2012 10:40 AM, Cosimo Streppone wrote: Anyone cares enough to step in? I can do it :-) but please don't hold your breath! it can take me quite some time (let's say, between a few weeks and some months), since I'm pretty busy too. thanks and ++ to Cosimo for the many wonderful thing

Re: 3 Win32::API bugs

2012-05-08 Thread Cosimo Streppone
On Tue, 08 May 2012 09:12:53 +0200, bulk 88 wrote: can you please look at and respond to https://rt.cpan.org/Public/Bug/Display.html?id=77048 https://rt.cpan.org/Public/Bug/Display.html?id=12057 and https://rt.cpan.org/Public/Bug/Display.html?id=77055 ! Thanks for this message. Yes, I re