Giter Site home page Giter Site logo

Comments (2)

diamondburned avatar diamondburned commented on May 25, 2024

This isn't actually the case. There's actually a length integer overflow,
causing the results to be negative.

There isn't one. The old pointer was a Cgo detail, probably. The call after that
shows the correct length integer:

github.com/diamondburned/gotk4/pkg/gtk/v4._Cfunc_gtk_text_buffer_insert(0x7f4980bc3d00, 0xc0045ba8c0, 0xc001aacaf8, 0x4)
	_cgo_gotypes.go:39452 +0x45 fp=0xc0009d8d48 sp=0xc0009d8d20 pc=0xc2f085
github.com/diamondburned/gotk4/pkg/gtk/v4.(*TextBuffer).Insert.func1(0xc0009d8dc8, 0xd4b905, 0x7f4980bc3d00, 0x99999901)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gtk/v4/gtktextbuffer.go:1355 +0x85 fp=0xc0009d8d98 sp=0xc0009d8d48 pc=0xd44465
github.com/diamondburned/gotk4/pkg/gtk/v4.(*TextBuffer).Insert(0xc004642318, 0xc0035332d8, {0xc001aacaf8, 0x4})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gtk/v4/gtktextbuffer.go:1355 +0x6d fp=0xc0009d8dd8 sp=0xc0009d8d98 pc=0xd4438d

from gotk4.

diamondburned avatar diamondburned commented on May 25, 2024

It doesn't seem like this is a real issue.

from gotk4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.