Comments (3)
Fix warnings from png encoding
from imageflow.
What we used to do:
desc "run with valgrind"
valgrind_task("--leak-check=full --show-leak-kinds=all", :valgrind => PROFILING_PROGRAM)
desc "run with callgrind"
valgrind_task("--tool=callgrind --dump-instr=yes --cache-sim=yes --branch-sim=yes", :callgrind => PROFILING_PROGRAM)
desc "run with cachegrind"
task :cachegrind => PROFILING_PROGRAM do |t|
cachegrind_out_file = "/tmp/cachegrind-out-file"
with_ld_library_path('.') do
sh "valgrind #{VALGRIND_OPTS} --tool=cachegrind --branch-sim=yes --cachegrind-out-file=#{cachegrind_out_file} ./#{t.prerequisites.first}"
end
sh "cg_annotate #{cachegrind_out_file}"
end
desc "build the test program"
file TEST_PROGRAM => TEST_OBJECTS + LIB_OBJECTS do |t|
sh "#{CXX} -Werror #{t.prerequisites.join(" ")} -o #{t.name}"
end
desc "build the theft_test program"
file "theft_test" => THEFT_TEST_OBJECTS + LIB_OBJECTS do |t|
sh "#{CXX} -Werror #{t.prerequisites.join(" ")} -ltheft -o #{t.name}"
end
task :test => TEST_PROGRAM do
sh "./#{TEST_PROGRAM} #{ENV['ARGS']}"
end
desc "Run the test program with valgrind"
valgrind_task("--leak-check=full --show-leak-kinds=all --error-exitcode=2", :test_with_valgrind => TEST_PROGRAM)
desc "Run theft_test with valgrind"
valgrind_task("--leak-check=full --show-leak-kinds=all", :theft_test_with_valgrind => "theft_test")
from imageflow.
This is now part of build.sh
for both C and Rust. CI fails if any leaks or undefined behaviors are detected.
from imageflow.
Related Issues (20)
- bug: docs site gives 404 HOT 2
- Error: Need Crop, got None HOT 1
- Some png files when resized with png.quality results as empty/transparent png file HOT 5
- Rename imageflow cli tool to something more convenient/shorter HOT 1
- When IDCT preshrinking is active, &zoom=x command may apply to preshrunk dimensions instead
- Investigate differences between ImageResizer4 f.sharpen and Imageflow
- Add compatibility for IR4 ?format=webp&quality=x
- imageflow_tool v1/querystring imlement print to stdout HOT 3
- too much time on a medium size file HOT 4
- jpeg Quality: bug or feature HOT 4
- CI feature: integrate pull request preview environments
- Require support for BMP files HOT 11
- Provide a sharper set of defaults for e-commerce solutions
- [RFC] Add a new syntax for srcset
- Massive linux .so build
- Azure Web App (Code,Linux,Net7) Error: Looking for "libimageflow.so" HOT 10
- How to use imageflow_tool on a managed server HOT 3
- Investigate libwebp CVE-2023-1999 HOT 4
- Evaluate migrating to gif-dispose
- Repeated Gif convertation fails with "unexpected EOF" HOT 7
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 imageflow.