avast / avast/retdec

Decompiled C file for Windows DbgView.exe include wrong header files

Open
#939 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

For `Dbgview.exe` from sysinternals suite, the output `DbgView.c` included headers files like `#include ` and `#include ` which is incorrect?.
I tried both v4.0 and master branch of Windows version.

```
//
// This file was generated by the Retargetable Decompiler
// Website: https://retdec.com
// Copyright (c) Retargetable Decompiler
//

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Windows DbgView.exe decompilation with the v4.0 and master branches, then inspect the generated DbgView.c and the header-generation path that produces its includes. Done means the Windows output no longer contains inappropriate POSIX headers such as arpa/inet.h or sys/socket.h, while retaining headers required by the generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.