Comments (3)
Thanks for reporting. Can you plese test with some older versions to see if this is a regression?
from admesh.
Also, it's generally a good idea to look at https://github.com/alexrj/Slic3r if this was not fixed there.
from admesh.
thanks for the quick answer;
I've tried with 0.98.0 and 0.97.0 with same buffer overflow.
I searched like suggested in slic3r issues and found slic3r/Slic3r#3317 that seems to be exactly the same.
according to what's written, it's fixed in 1.3.0 version of slicer, so I've downloaded source code of slicer, replaced admesh source code by the one found in slicer (xs/src/admesh), compiled it and it worked.
In order to be sure, I ran address sanitizer on it too, no more buffer overflow detected. but instead, there is some leaks only at the end of the program, if interested, following is asan report.
==22319==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 651176 byte(s) in 1 object(s) allocated from:
#0 0x4aad74 in calloc /tmp/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:56
#1 0x7f9cd82f9d73 in stl_initialize_facet_check_nearby(stl_file*) /home/xxx/Téléchargements/admesh/admesh-0.98.2/src/connect.c:394:33
Indirect leak of 177280 byte(s) in 4432 object(s) allocated from:
#0 0x4aabeb in malloc /tmp/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40
#1 0x7f9cd82f82f3 in insert_hash_edge(stl_file*, stl_hash_edge, void ()(stl_file, stl_hash_edge*, stl_hash_edge*)) /home/xxx/Téléchargements/admesh/admesh-0.98.2/src/connect.c:208:32
Indirect leak of 28120 byte(s) in 703 object(s) allocated from:
#0 0x4aabeb in malloc /tmp/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40
#1 0x7f9cd82f83bb in insert_hash_edge(stl_file*, stl_hash_edge, void ()(stl_file, stl_hash_edge*, stl_hash_edge*)) /home/xxx/Téléchargements/admesh/admesh-0.98.2/src/connect.c:228:36
Indirect leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x4aabeb in malloc /tmp/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40
#1 0x7f9cd82f9da3 in stl_initialize_facet_check_nearby(stl_file*) /home/xxx/Téléchargements/admesh/admesh-0.98.2/src/connect.c:397:31
from admesh.
Related Issues (20)
- Compile into exe HOT 5
- Simple merge of two stl_files
- Sync with Slic3r
- Windows: the converting from ascii stl to binary is incorrect HOT 2
- [feature-request] Separate disconnected parts. HOT 2
- heap-buffer-flow in stl_update_connects_remove_1 HOT 2
- admesh hang on the input HOT 4
- post installation error - not sure if installed properly HOT 2
- uninitialized extra values when loading ascii stl
- very handy tool
- Errors during the build process (ChangeLog, AUTHORS) HOT 5
- Non-zero exit code if errors HOT 1
- --write-binary-stl doesnt produce a readable stl file HOT 3
- Add deep copy function for the stl_file
- Add const qualifier to the char* params where the string is read-only. HOT 1
- Investigate and fix memory leaks.
- New version 1.0 HOT 7
- Cannot find stl.h
- Security bug HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admesh.