X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rod Pemberton Newsgroups: comp.os.msdos.djgpp Subject: Re: [PATCH] exec: fix inversions in leak detection logic Date: Sat, 17 Aug 2019 21:16:00 -0400 Organization: Aioe.org NNTP Server Lines: 42 Message-ID: References: <964e3268-2f75-ee73-ab5a-b01bf1aadb98 AT yandex DOT ru> <19c9edb1-5813-bac2-68dc-59d3fb07d81f AT yandex DOT ru> NNTP-Posting-Host: +15yR2JuBIwiofOqK4kSZw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Complaints-To: abuse AT aioe DOT org X-Notice: Filtered by postfilter v. 0.9.2 Bytes: 2196 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7I1UJ4g006318 Reply-To: djgpp AT delorie DOT com On Sat, 17 Aug 2019 22:47:00 +0300 "stsp (stsp2 AT yandex DOT ru) [via djgpp AT delorie DOT com]" wrote: > 17.08.2019 22:02, Rod Pemberton пишет: > If the get descriptor call fails > we also know this descriptor is currently not user allocated. > --- > Which means freed! No, it doesn't. Windows - i.e., a non-user - allocates descriptors for itself. The DPMI host would also be a non-user which allocates descriptors for itself. IIRC, the CRT startup code also allocates descriptors for itself. >> I'm confused by this patch, but I'm also not familiar with what the >> code does. Even so, I suspect you fixed the problem in the wrong >> manner. Could you try only modifying the mask to see if that fixes >> your issue? > >This will make thing very DPMI-host-dependent. >One host only clears P, another one can do other >things. DJGPP DPMI apps work for both DOS with DPMI and for Windows in console windows with Windows' built-in DPMI for V86 mode. DJGPP code can already run under many DPMI hosts: CWSDPMI, CWSDPR0, PMODETSR, and Windows 98/SE/ME/NT/2K/XP DPMI in console windows, etc. Rod Pemberton -- Let me say it yet again. Reducing gun violence doesn't reduce violence. Dead is dead, whether by gun, car, hammer, club, or knife.