huffman_encoder_decoder's Introduction
huffman_encoder_decoder's People
huffman_encoder_decoder's Issues
getting -Werror=format-overflow error with new compiler
HuffmanTree.cpp:40:6: error: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Werror=format-overflow=]
void HuffmanTree::print(Node* node, int level) const
^~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/c++/7/ext/string_conversions.h:43,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/iomanip:40,
from HuffmanTree.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output 2 bytes into a destination of size 1
__bos (__s), __fmt, __va_arg_pack ());
^
HuffmanTree.cpp: In member function ‘std::__cxx11::string HuffmanTree::printChar(Node*) const’:
HuffmanTree.cpp:132:13: error: ‘__builtin___sprintf_chk’ writing a terminating nul past the end of the destination [-Werror=format-overflow=]
std::string HuffmanTree::printChar(Node* node) const
^~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/c++/7/ext/string_conversions.h:43,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/iomanip:40,
from HuffmanTree.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output 2 bytes into a destination of size 1
__bos (__s), __fmt, __va_arg_pack ());
Add generic makefile
add generic makefile to support hierarchic makefile structure
Restructure the code base
code cleanup, fix nullptr comparisons
memory leak
Fix memory leak
Add documentation
Add error handling mechanism
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.