An ultra simple variable size vector in C
Doxygen documentation: https://anders1232.github.io/SimpleCVariableSizeVector/
An ultra simple variable size vector in C
License: GNU General Public License v3.0
An ultra simple variable size vector in C
Doxygen documentation: https://anders1232.github.io/SimpleCVariableSizeVector/
Code to reproduce the example: https://github.com/Anders1232/SimpleSocketProgram/tree/c3bf5329389772360e98217a28a879fa25817877
It happens on both vectors used on the code.
Valgrind output:
==4629== Invalid write of size 2
==4629== at 0x4C2F19B: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1017)
==4629== by 0x400F11: VectorAppendCopy (vector.c:46)
==4629== by 0x401319: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629== Address 0x53f2b2c is 0 bytes after a block of size 60 alloc'd
==4629== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4629== by 0x400E2C: Resize (vector.c:24)
==4629== by 0x400E97: VectorAllocateOne (vector.c:36)
==4629== by 0x400ED0: VectorAppendCopy (vector.c:44)
==4629== by 0x401319: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629==
==4629== Invalid write of size 8
==4629== at 0x4E3EBEF: pthread_create@@GLIBC_2.2.5 (pthread_create.c:631)
==4629== by 0x40135D: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629== Address 0x53f2b88 is 0 bytes after a block of size 24 alloc'd
==4629== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4629== by 0x400E2C: Resize (vector.c:24)
==4629== by 0x400E97: VectorAllocateOne (vector.c:36)
==4629== by 0x401338: TcpServer (servidor.c:147)
==4629== by 0x401198: main (servidor.c:79)
==4629==
==4629== Thread 2:
==4629== Invalid read of size 8
==4629== at 0x4013FB: ConnectionEstabilished (servidor.c:163)
==4629== by 0x4E3E463: start_thread (pthread_create.c:333)
==4629== Address 0x53f2b2c is 0 bytes after a block of size 60 alloc'd
==4629== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4629== by 0x400E2C: Resize (vector.c:24)
==4629== by 0x400E97: VectorAllocateOne (vector.c:36)
==4629== by 0x400ED0: VectorAppendCopy (vector.c:44)
==4629== by 0x401319: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629==
==4629== Invalid read of size 8
==4629== at 0x401402: ConnectionEstabilished (servidor.c:163)
==4629== by 0x4E3E463: start_thread (pthread_create.c:333)
==4629== Address 0x53f2b34 is 8 bytes after a block of size 60 alloc'd
==4629== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4629== by 0x400E2C: Resize (vector.c:24)
==4629== by 0x400E97: VectorAllocateOne (vector.c:36)
==4629== by 0x400ED0: VectorAppendCopy (vector.c:44)
==4629== by 0x401319: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629==
==4629== Invalid read of size 4
==4629== at 0x40140A: ConnectionEstabilished (servidor.c:163)
==4629== by 0x4E3E463: start_thread (pthread_create.c:333)
==4629== Address 0x53f2b3c is 16 bytes after a block of size 60 alloc'd
==4629== at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4629== by 0x400E2C: Resize (vector.c:24)
==4629== by 0x400E97: VectorAllocateOne (vector.c:36)
==4629== by 0x400ED0: VectorAppendCopy (vector.c:44)
==4629== by 0x401319: TcpServer (servidor.c:146)
==4629== by 0x401198: main (servidor.c:79)
==4629==
Esta'dando o erro 404, mesmo com o repositório configurado para ter uma github page na pasta docs e nessa pasta estando o index.html gerado.
Esse é o link que deveria estar funcionando:
https://anders1232.github.io/SimpleCVariableSizeVector/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.