[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Winetest fails to write to log file
From:       André_Hentschel <nerv () dawncrow ! de>
Date:       2019-03-31 12:16:18
Message-ID: 4e04ee59-8f64-e158-157c-c371553e041b () dawncrow ! de
[Download RAW message or body]

Am 03.03.19 um 03:02 schrieb Isira Seneviratne:
> Hi,
> 
> I'm getting a bizarre issue where Winetest displays an error message box saying \
> that it cannot write to the log file (error code is 6) with the attached patch \
> applied to the code. 
> I referred to the following Perl script as well: \
> https://source.winehq.org/git/tools.git/blob/HEAD:/winetest/dissect 
> Also, I tried iterating through the log file after all the tests have finished \
> executing, but that does not display any results as intended, so I reverted to the \
>                 method that I used in the prior patches.
> --
> Isira Seneviratne
> isirasen96@gmail.com <mailto:isirasen96@gmail.com>
> 
> 

Hi,

GSoC is beginning to start again and people are already proposing this project, so I \
had a look again. Do you think we should remove the idea from the list?

What leads to the error 6 is that logfile became NULL, as this is not possible it was \
most likely overwritten by a buffer overflow. Increasing the sizes of prev_unit and \
prev_dll fixes it. Your original sizes (20 and 30) indicate that you should think \
more about how big those buffers should be. If you don't know, allocate them and make \
them grow dynamically.

I would also encourage to move the listview to the right of the existing controls.

> 
> /* Avoid unnecessary copying of the contents of 'dll' and 'unit' to 'prev_dll' and \
> 'prev_unit' */ if (strcmp(prev_dll, dll))
> strcpy(prev_dll, dll);
> if (strcmp(prev_unit, unit))
> strcpy(prev_unit, unit);

BTW, this is horrible, simply copy it.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic