Giter Club home page Giter Club logo

Comments (5)

Trass3r avatar Trass3r commented on June 7, 2024

Also it doesn't print any errors if types that are probably unknown are used, like LPDIRECTDRAW in this case:

{
	"dll": "DDRAW.DLL",
	"export_name": "DirectDrawCreate",
	"display_name": "DirectDrawCreate",
	"convention": "stdcall",
	"parameters": [
		{
			"name": "lpGUID",
			"type": "GUID*",
			"inout": "in"
		},
		{
			"name": "lplpDD",
			"type": "LPDIRECTDRAW*",
			"inout": "out"
		},
		{
			"name": "pUnkOuter",
			"type": "IUnknown*",
			"inout": "in"
		}
	],
	"type": "HRESULT"
},

from pharos.

cfcohen avatar cfcohen commented on June 7, 2024

Because there can be a very large number of imports for each DLL, which can generate a large number of errors, we made the decision to only report the missing DLL where there is no data for the DLL. I think that once you've defined a single function for a given DLL, the remainder of the missing functions will be reported.

Right now the actual types aren't used by the Pharos system. We have some experimental type analysis code that is disabled by default due to performance issues that can conceptually use those types, and we hope to make better use of them in the future. In practice the parameters are just there right now to get a correct parameter count, and therefore a correct stack delta for the function.

from pharos.

Trass3r avatar Trass3r commented on June 7, 2024

I think that once you've defined a single function for a given DLL, the remainder of the missing functions will be reported.

Doesn't match what I experienced.

Right now the actual types aren't used by the Pharos system. We have some experimental type analysis code that is disabled by default due to performance issues that can conceptually use those types, and we hope to make better use of them in the future. In practice the parameters are just there right now to get a correct parameter count, and therefore a correct stack delta for the function.

Ha ok.

from pharos.

sei-mwd avatar sei-mwd commented on June 7, 2024

I've been looking though the ReportDictionary code in apidb.[cpp,h] that I wrote to handle this. I haven't found out what this might be via inspection, however. I'll do some testing a little later, but I think the warnings you want might be hidden at a lower level of logging. Please try with --log="APID(all)" to get all the gruesome details on what is actually being looked up and from where, under the hood.

from pharos.

sei-ccohen avatar sei-ccohen commented on June 7, 2024

Did the additional logging resolve this issue? Did the new release? If this problem still occurs, please attempt to provide a small test case that demonstrates the problem and we'll fix it. Internally we're agreed that it's supposed to have reported one error for the entire DLL when there's no data at all for that DLL, and report an error for each function individually where there is data for the DLL. The API database system is fairly complex and multi-layered, so it's possible that you've found something that we've just missed.

from pharos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.