github.com/tencent/goom@v1.0.1/internal/unexports/compatible_under_18.go (about)

     1  //go:build !go1.18
     2  // +build !go1.18
     3  
     4  package unexports
     5  
     6  import "github.com/tencent/goom/internal/hack"
     7  
     8  // checkOverflow 检查 hack ftab 数据的是否正确, 一般溢出则不正确
     9  func checkOverflow(ftab hack.Functab, moduleData *hack.Moduledata) bool {
    10  	return ftab.Funcoff >= uintptr(len(moduleData.Pclntable))
    11  }